Skip to content

Commit

Permalink
Fix pointer-ungrabs.
Browse files Browse the repository at this point in the history
BView::SetEventMask only clears the mask if both parameters are 0.
  • Loading branch information
waddlesplash committed Jan 27, 2022
1 parent 8c32ad4 commit d64b415
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xlib/Drawables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ XWindow::ungrab_pointer()
return;

LockLooper();

// We have to call twice: first to unset the mask, then to add the option.
SetEventMask(0, 0);
SetEventMask(0, B_NO_POINTER_HISTORY);

_event_mask = _prior_event_mask;
Expand Down

0 comments on commit d64b415

Please sign in to comment.