Merge pull request #611 from DonOregano/fix-resize-freeze

Make pointer button release outside window still count down the button_count
This commit is contained in:
Drew DeVault 2018-02-07 21:00:09 -05:00 committed by GitHub
commit 78dc0c7de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,9 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
}
}
if (view && surface) {
if ((view && surface) ||
(state == WLR_BUTTON_RELEASED &&
seat->seat->pointer_state.button_count != 0)) {
if (!is_touch) {
wlr_seat_pointer_notify_button(seat->seat, time, button, state);
}