diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-07 21:00:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07 21:00:09 -0500 |
commit | 78dc0c7de13c19257c6f186f9d7cf1d211c310e8 (patch) | |
tree | 34f6aa7a367ea183ad20dcf64bf4d566a9d997cc /rootston | |
parent | e13b13ff1d08f0596b1efacfc209ff90bf751914 (diff) | |
parent | b181f793c393527d6bc955b4762a6945cbe65d1b (diff) |
Merge pull request #611 from DonOregano/fix-resize-freeze
Make pointer button release outside window still count down the button_count
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/cursor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c index d8753f44..717a3da8 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -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); } |