aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-02-23 11:30:55 +0100
committerGuido Günther <agx@sigxcpu.org>2018-02-25 16:53:36 +0100
commite2ea1ebe48db25f7372bbab21bc66cde5934895b (patch)
tree0b0289ecb7c9cf7967c1d6476e0e519984e55629 /rootston/desktop.c
parentd08792bfffc6b7b28f59d7ee100091805367b7fa (diff)
rootston: Add alpha channel to views
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 57e2d54b..9d5cd2fa 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -25,6 +25,10 @@
struct roots_view *view_create() {
struct roots_view *view = calloc(1, sizeof(struct roots_view));
+ if (!view) {
+ return NULL;
+ }
+ view->alpha = 1.0f;
return view;
}