]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly check bitmask for floating_modifier
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Mar 2010 01:53:53 +0000 (02:53 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Mar 2010 01:53:53 +0000 (02:53 +0100)
src/click.c

index bec86788988cbcb21f7d1ca9f8e87679c6bcb987..c8b9d23bb368cd04448ac83fb1ead7c7af652430 100644 (file)
@@ -265,7 +265,7 @@ int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button_press_
          * to move around the client if it was floating. if not, we just process
          * as usual. */
         if (config.floating_modifier != 0 &&
-            (event->state & config.floating_modifier) != 0) {
+            (event->state & config.floating_modifier) == config.floating_modifier) {
                 if (client == NULL) {
                         DLOG("Not handling, floating_modifier was pressed and no client found\n");
                         return 1;