From 7beb3f6ec659548f829cef65f99e95e43b9e3b0d Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Fri, 11 Feb 2022 16:24:32 +0100 Subject: [PATCH] Fix build without tabbox Signed-off-by: Eike Hein --- src/events.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/events.cpp b/src/events.cpp index e4ed633bb2..55a284916b 100644 --- a/src/events.cpp +++ b/src/events.cpp @@ -789,10 +789,12 @@ void X11Client::updateMouseGrab() xcb_ungrab_button(kwinApp()->x11Connection(), XCB_BUTTON_INDEX_ANY, m_wrapper, XCB_MOD_MASK_ANY); +#ifdef KWIN_BUILD_TABBOX if (TabBox::TabBox::self()->forcedGlobalMouseGrab()) { // see TabBox::establishTabBoxGrab() m_wrapper.grabButton(XCB_GRAB_MODE_SYNC, XCB_GRAB_MODE_ASYNC); return; } +#endif // When a passive grab is activated or deactivated, the X server will generate crossing // events as if the pointer were suddenly to warp from its current position to some position