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
(cherry picked from commit 4990ed99eb)
This commit is contained in:
Kirill Primak 2023-11-26 00:51:50 +03:00 committed by Simon Zeni
parent fe53ec6937
commit b909cc71cd
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;