mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
rootston: add view_create
so we can do basic view setup. Will be used to initialize alpha.
This commit is contained in:
parent
69409ea3cb
commit
e6ca78b0e4
6 changed files with 11 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue