Only abort resizing on KeyPress, not KeyRelease (Thanks vandannen)

Otherwise, releasing a key that was used to trigger the resizing (e.g.
the modifier key) needs to be pressed all the time.
This commit is contained in:
Michael Stapelberg 2013-10-01 07:21:40 +02:00
parent 98c4cc46e4
commit d661c1493c
1 changed files with 0 additions and 1 deletions

View File

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