]> git.sur5r.net Git - i3/i3/commitdiff
Only abort resizing on KeyPress, not KeyRelease (Thanks vandannen)
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 1 Oct 2013 05:21:40 +0000 (07:21 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 1 Oct 2013 05:21:40 +0000 (07:21 +0200)
Otherwise, releasing a key that was used to trigger the resizing (e.g.
the modifier key) needs to be pressed all the time.

src/floating.c

index a08b7b0fdbc544201197d442ff8523d54fae3086..ae1a9192ac7ead606f9237b3858442bb3651928b 100644 (file)
@@ -663,7 +663,6 @@ drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_
                     break;
 
                 case XCB_KEY_PRESS:
-                case XCB_KEY_RELEASE:
                     /* Cancel the drag if a key was pressed */
                     DLOG("A key was pressed during drag, canceling.");
                     loop_done = true;