backend/x11: don't send ConfigureRequest with the same size

Under X11, ConfigureNotify means that the window has already been resized.
Sending ConfigureRequest with the received size is not only useless, but also
can confuse the window manager, which will probably reply with the current
(i.e. *old*) size causing a configure loop.

Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3769
This commit is contained in:
Kirill Primak 2023-11-26 00:51:50 +03:00 committed by Simon Ser
parent 4102b722d9
commit 4990ed99eb
2 changed files with 15 additions and 0 deletions

View file

@ -35,6 +35,8 @@ struct wlr_x11_output {
xcb_window_t win;
xcb_present_event_t present_event_id;
int32_t win_width, win_height;
struct wlr_pointer pointer;
struct wlr_touch touch;