compositor/drag: Guard X11 call

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3540>
This commit is contained in:
Bilal Elmoussaoui 2024-01-22 17:03:42 +01:00 committed by Marge Bot
parent 67e21e0881
commit d8812c0d2f

View File

@ -26,7 +26,10 @@
#include "core/frame.h" #include "core/frame.h"
#include "core/window-private.h" #include "core/window-private.h"
#include "meta/meta-enum-types.h" #include "meta/meta-enum-types.h"
#ifdef HAVE_X11_CLIENT
#include "x11/window-x11.h" #include "x11/window-x11.h"
#endif
enum { enum {
PROP_0, PROP_0,
@ -1495,9 +1498,11 @@ update_resize (MetaWindowDrag *window_drag,
* resize the window when the window responds, or when we time * resize the window when the window responds, or when we time
* the response out. * the response out.
*/ */
#ifdef HAVE_X11_CLIENT
if (window->client_type == META_WINDOW_CLIENT_TYPE_X11 && if (window->client_type == META_WINDOW_CLIENT_TYPE_X11 &&
meta_window_x11_is_awaiting_sync_response (window)) meta_window_x11_is_awaiting_sync_response (window))
return; return;
#endif
meta_window_get_frame_rect (window, &old_rect); meta_window_get_frame_rect (window, &old_rect);