mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwayland: Commit surface changes with libdecor configure
With libdecor, when the state changes (in the configure handler), we
need to commit the libdecor frame but also the wl_surface, otherwise
the surface is left in a uncommitted state until a wl_surface commit
eventually occurs later.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Fixes: c74c6add3e - xwayland: add optional support for libdecor
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
@@ -617,6 +617,13 @@ handle_libdecor_configure(struct libdecor_frame *frame,
|
||||
libdecor_frame_unset_capabilities(frame, LIBDECOR_ACTION_RESIZE);
|
||||
if (libdecor_frame_has_capability(frame, LIBDECOR_ACTION_FULLSCREEN))
|
||||
libdecor_frame_unset_capabilities(frame, LIBDECOR_ACTION_FULLSCREEN);
|
||||
|
||||
/* FIXME:
|
||||
* We're not xdg-shell compliant here, we are supposed to adjust to
|
||||
* the given configure size.
|
||||
*/
|
||||
|
||||
wl_surface_commit(xwl_window->surface);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user