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:
parent
98c4cc46e4
commit
d661c1493c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue