mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland: Implement set_decorations
Fixes games going between borderless and normal windowed modes. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
89f09567f5
commit
0a7f1b51f7
2 changed files with 11 additions and 0 deletions
|
|
@ -208,6 +208,12 @@ want_deco(struct view *view)
|
|||
WLR_XWAYLAND_SURFACE_DECORATIONS_ALL;
|
||||
}
|
||||
|
||||
static void
|
||||
handle_set_decorations(struct wl_listener *listener, void *data) {
|
||||
struct view *view = wl_container_of(listener, view, set_decorations);
|
||||
view_set_decorations(view, want_deco(view));
|
||||
}
|
||||
|
||||
static void
|
||||
top_left_edge_boundary_check(struct view *view)
|
||||
{
|
||||
|
|
@ -365,5 +371,9 @@ xwayland_surface_new(struct wl_listener *listener, void *data)
|
|||
view->set_app_id.notify = handle_set_class;
|
||||
wl_signal_add(&xsurface->events.set_class, &view->set_app_id);
|
||||
|
||||
view->set_decorations.notify = handle_set_decorations;
|
||||
wl_signal_add(&xsurface->events.set_decorations,
|
||||
&view->set_decorations);
|
||||
|
||||
wl_list_insert(&view->server->views, &view->link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue