Abort drag when involved window(s) vanish
Patch status: needinfo
Patch by Tony Crisci
Long description:
When in a dragging state induced by `drag_pointer`, abort (rather than send `DRAG_CANCEL` result) on UnmapNotify. Fixes an issue that caused i3 to crash when a user is dragging or resizing a floating window that becomes destroyed.
To apply this patch, use:
curl http://cr.i3wm.org/patch/288/raw.patch | git am
b/src/floating.c
18 |
@@ -659,7 +659,6 @@ drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_ |
19 |
DLOG("Unmap-notify, aborting\n"); |
20 |
handle_event(type, inside_event); |
21 |
loop_done = true; |
22 |
- drag_result = DRAG_CANCEL; |
23 |
break; |
24 |
|
25 |
case XCB_KEY_PRESS: |