improve xdg states handling

This commit is contained in:
DanyLE
2024-04-13 05:17:28 +02:00
parent 68a0b669ef
commit 5088bf8ac2
6 changed files with 191 additions and 86 deletions

View File

@ -106,6 +106,7 @@ struct diyac_server
struct wlr_backend *backend;
struct wlr_renderer *renderer;
struct wlr_allocator *allocator;
struct wl_event_loop *wl_event_loop;
struct wlr_scene *scene;
struct wlr_scene_output_layout *scene_layout;
@ -185,15 +186,18 @@ struct diyac_view
struct wlr_scene_tree *scene_tree;
struct diyac_view_state state;
struct diyac_view_state requested;
uint32_t configuration_serial;
struct wl_event_source * configuration_timeout;
/*
* Geometry of the wlr_surface contained within the view, as
* currently displayed. Should be kept in sync with the
* scene-graph at all times.
*/
struct wlr_box original;
struct wlr_box pending_size;
bool mapped;
struct diyac_output *output;
struct wl_listener commit;
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener destroy;