diff options
author | emersion <contact@emersion.fr> | 2017-10-08 12:17:25 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-08 12:17:25 +0200 |
commit | d09d01236ba5804320bc9ad7d592c5077205f878 (patch) | |
tree | cd9ad220efcd58eccdc173f32d1483b8e17f9169 /include/rootston | |
parent | 543601e86c24ad6ed630aba0cf615bfb585c19e7 (diff) |
Center xdg shell views
Diffstat (limited to 'include/rootston')
-rw-r--r-- | include/rootston/view.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rootston/view.h b/include/rootston/view.h index 64aad45e..4d0cc5e0 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -1,5 +1,6 @@ #ifndef _ROOTSTON_VIEW_H #define _ROOTSTON_VIEW_H + #include <stdbool.h> #include <wlr/types/wlr_box.h> #include <wlr/types/wlr_surface.h> @@ -18,7 +19,9 @@ struct roots_wl_shell_surface { struct roots_xdg_surface_v6 { struct roots_view *view; + // TODO: Maybe destroy listener should go in roots_view + struct wl_listener commit; struct wl_listener destroy; struct wl_listener ping_timeout; struct wl_listener request_minimize; @@ -73,5 +76,6 @@ void view_get_input_bounds(struct roots_view *view, struct wlr_box *box); void view_activate(struct roots_view *view, bool active); void view_resize(struct roots_view *view, uint32_t width, uint32_t height); void view_close(struct roots_view *view); +bool view_center(struct roots_view *view); #endif |