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:
parent
0ea9b59589
commit
a7ee25f67d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue