]> git.sur5r.net Git - i3/i3/commit
Return DRAG_ABORT on UnmapNotify from drag_pointer
authorTony Crisci <tony@dubstepdish.com>
Fri, 1 Nov 2013 00:36:31 +0000 (20:36 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Nov 2013 12:27:42 +0000 (13:27 +0100)
commit9ee26a608e329ceea583950fcc92bc5a28f6cf55
treefde222f08ce0ebe1f84519d063f3bf14933b5c55
parentf691a55923850a4d315450925fc98733d07b69c9
Return DRAG_ABORT on UnmapNotify from drag_pointer

Add DRAG_ABORT to enum drag_result_t. DRAG_ABORT will indicate the drag
operation cannot be completed.

Return DRAG_ABORT on UnmapNotify, or when the keyboard or pointer cannot
be grabbed.

Add DRAGGING to return value for drag_result_t. DRAGGING is used
internally by drag_pointer to indicate the drag is in progress.

Change DRAG_CANCEL to DRAG_REVERT to clarify the distinction between
"abort" and "revert/cancel" actions.

Fixes an issue that caused i3 to crash when a user is dragging or
resizing a floating window that becomes destroyed.
include/floating.h
src/floating.c
src/resize.c