From: Michael Stapelberg Date: Tue, 1 Oct 2013 05:21:40 +0000 (+0200) Subject: Only abort resizing on KeyPress, not KeyRelease (Thanks vandannen) X-Git-Tag: 4.7~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d661c1493c9218f48fee9b0fc71bc2006d55a3e2;p=i3%2Fi3 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. --- diff --git a/src/floating.c b/src/floating.c index a08b7b0f..ae1a9192 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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;