weston/xwayland
Derek Foreman 0aac3dd343 xwm: Don't send synthetic ConfigureNotify to windows that were mapped O-R
It's entirely possible, if ridiculous, for an X11 client to change a
window's override redirect flag while it's mapped. If this changes from
true to false we will start receiving Configure requests for the window.

That leads us to a crash when we try to query the window's current
position from the shell to send a configure notify event, as the shell
doesn't know about the surface.

Instead of trying to cleverly handle this, mostly go back to the behaviour
these clients would've seen before commit cf5aca5a and don't send them
a synthetic configure notify.

We also specifically check in weston_wm_handle_configure_request for
the same condition, and early return there, bypassing a couple of
other things we would've done previously.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
2022-08-02 12:22:50 +00:00
..
dnd.c libweston: correct argument name in the handler of wl_data_source.accept 2022-04-14 12:05:57 +00:00
hash.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
hash.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
launcher.c xwayland: Fix user after free on shutdown 2022-01-21 11:42:03 +00:00
meson.build shared/xcb-xwayland: Split into common helpers 2022-06-22 08:08:41 +00:00
selection.c xwm: Fix pasting in some cases 2022-05-31 17:57:03 +00:00
window-manager.c xwm: Don't send synthetic ConfigureNotify to windows that were mapped O-R 2022-08-02 12:22:50 +00:00
xwayland-internal-interface.h libweston-desktop: Add get_position 2022-06-29 11:44:48 +00:00
xwayland.h shared/xcb-xwayland: Split into common helpers 2022-06-22 08:08:41 +00:00