mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 02:08:01 +02:00
XQuartz: Only send mouse events while in the background if we're over a visible window.
This "breaks" xeyes but gets rid of annoying tooltips.
This commit is contained in:
parent
22a54e4617
commit
10090a132a
1 changed files with 16 additions and 0 deletions
|
|
@ -941,6 +941,22 @@ extern int darwin_modifier_flags; // darwinEvents.c
|
|||
pDev = darwinTabletCurrent;
|
||||
}
|
||||
|
||||
if(!quartzServerVisible) {
|
||||
xp_window_id wid;
|
||||
|
||||
/* Sigh. Need to check that we're really over one of
|
||||
* our windows. (We need to receive pointer events while
|
||||
* not in the foreground, and the only way to do that
|
||||
* right now is to ask for _all_ pointer events..)
|
||||
*/
|
||||
|
||||
wid = 0;
|
||||
xp_find_window(pointer_x, pointer_y, 0, &wid);
|
||||
|
||||
if (wid == 0)
|
||||
return;
|
||||
}
|
||||
|
||||
DarwinSendPointerEvents(pDev, ev_type, ev_button, pointer_x, pointer_y,
|
||||
pressure, tilt_x, tilt_y);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue