mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 08:10:14 +01: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.
(cherry picked from commit 10090a132a)
This commit is contained in:
parent
2a9613980f
commit
c837d182c4
1 changed files with 16 additions and 0 deletions
|
|
@ -959,6 +959,22 @@ static void send_nsevent(NSEvent *e) {
|
|||
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