diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-02-23 11:50:09 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-02-25 13:47:43 +0100 |
commit | e6ca78b0e4b81e02958628c4b3b4db911b51714b (patch) | |
tree | ef90e62f36cc84dc5d04bc38119454c9bd495544 /rootston/desktop.c | |
parent | 69409ea3cb3bfba52df9ff35a9b58f6f1b3dc25e (diff) |
rootston: add view_create
so we can do basic view setup. Will be used to initialize alpha.
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r-- | rootston/desktop.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index 6b28a41c..57e2d54b 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -22,6 +22,12 @@ #include "rootston/view.h" #include "rootston/xcursor.h" + +struct roots_view *view_create() { + struct roots_view *view = calloc(1, sizeof(struct roots_view)); + return view; +} + void view_get_box(const struct roots_view *view, struct wlr_box *box) { box->x = view->x; box->y = view->y; |