diff options
| author | Guido Günther <agx@sigxcpu.org> | 2018-02-23 11:30:55 +0100 |
|---|---|---|
| committer | Guido Günther <agx@sigxcpu.org> | 2018-02-25 16:53:36 +0100 |
| commit | e2ea1ebe48db25f7372bbab21bc66cde5934895b (patch) | |
| tree | 0b0289ecb7c9cf7967c1d6476e0e519984e55629 /rootston/desktop.c | |
| parent | d08792bfffc6b7b28f59d7ee100091805367b7fa (diff) | |
| download | wlroots-e2ea1ebe48db25f7372bbab21bc66cde5934895b.tar.xz | |
rootston: Add alpha channel to views
Diffstat (limited to 'rootston/desktop.c')
| -rw-r--r-- | rootston/desktop.c | 4 |
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; } |
