mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
don't keep trying pointer grab when failing due to another application's grab b=500081 r=roc
--HG-- extra : transplant_source : %7E%40%C7%DD1%D9%D7%A2%8Dg%5E%8BG%A9J%3DK%0F%8B%FF
This commit is contained in:
parent
21dae0840e
commit
e81299470f
@ -4913,9 +4913,15 @@ nsWindow::GrabPointer(void)
|
||||
GDK_POINTER_MOTION_MASK),
|
||||
(GdkWindow *)NULL, NULL, GDK_CURRENT_TIME);
|
||||
|
||||
if (retval != GDK_GRAB_SUCCESS) {
|
||||
LOG(("GrabPointer: pointer grab failed\n"));
|
||||
if (retval == GDK_GRAB_NOT_VIEWABLE) {
|
||||
LOG(("GrabPointer: window not viewable; will retry\n"));
|
||||
mRetryPointerGrab = true;
|
||||
} else if (retval != GDK_GRAB_SUCCESS) {
|
||||
LOG(("GrabPointer: pointer grab failed: %i\n", retval));
|
||||
// A failed grab indicates that another app has grabbed the pointer.
|
||||
// Check for rollup now, because, without the grab, we likely won't
|
||||
// get subsequent button press events.
|
||||
check_for_rollup(0, 0, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user