Merge pull request #3365 from orestisf1993/DRAG_REVERT

floating_drag_window: return on DRAG_REVERT
next
Ingo Bürk 2018-08-21 20:39:26 +02:00 committed by GitHub
commit 2f3c8b6484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -537,8 +537,10 @@ void floating_drag_window(Con *con, const xcb_button_press_event_t *event) {
}
/* If the user cancelled, undo the changes. */
if (drag_result == DRAG_REVERT)
if (drag_result == DRAG_REVERT) {
floating_reposition(con, initial_rect);
return;
}
/* If this is a scratchpad window, don't auto center it from now on. */
if (con->scratchpad_state == SCRATCHPAD_FRESH)