]> git.sur5r.net Git - i3/i3/blobdiff - src/click.c
Bugfix: ignore XKB group bits in floating_modifier
[i3/i3] / src / click.c
index 92a1a1fa20fe26bf301d7712cd63dde3a2f542c6..c895666dd529fb798d271afb0fecbb1257d63db8 100644 (file)
@@ -356,7 +356,7 @@ int handle_button_press(xcb_button_press_event_t *event) {
 
     last_timestamp = event->time;
 
-    const uint32_t mod = config.floating_modifier;
+    const uint32_t mod = (config.floating_modifier & 0xFFFF);
     const bool mod_pressed = (mod != 0 && (event->state & mod) == mod);
     DLOG("floating_mod = %d, detail = %d\n", mod_pressed, event->detail);
     if ((con = con_by_window_id(event->event)))