diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-02-01 11:33:30 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2023-02-03 11:06:55 +0100 |
commit | a7ee25f67dfc44a7e3007d0c86d86d6cf76072d7 (patch) | |
tree | 8fd8af61a0e69866b4c1c3e878ee1d78b23f2f48 | |
parent | 0ea9b595891f2f31915538192961f3404d9ca699 (diff) |
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>
-rw-r--r-- | hw/xwayland/xwayland-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-window.c b/hw/xwayland/xwayland-window.c index 941c1b01b..d254eab4c 100644 --- a/hw/xwayland/xwayland-window.c +++ b/hw/xwayland/xwayland-window.c @@ -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 |