From 4990ed99ebc8eeb508e0077f620ec2df781fabdb Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sun, 26 Nov 2023 00:51:50 +0300 Subject: 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 --- include/backend/x11.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/backend') diff --git a/include/backend/x11.h b/include/backend/x11.h index 06834c1c..9eb208b1 100644 --- a/include/backend/x11.h +++ b/include/backend/x11.h @@ -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; -- cgit v1.2.3