mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 08:28:04 +02:00
XQuartz: Don't subtract the titlebar off of the pointer_y
This commit is contained in:
parent
5c6aa1272e
commit
00a9567acc
2 changed files with 2 additions and 2 deletions
|
|
@ -878,8 +878,6 @@ static void send_nsevent (NSEventType type, NSEvent *e) {
|
||||||
pointer_y = (screen.origin.y + screen.size.height) - location.y;
|
pointer_y = (screen.origin.y + screen.size.height) - location.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
pointer_y -= aquaMenuBarHeight;
|
|
||||||
|
|
||||||
pressure = 0; // for tablets
|
pressure = 0; // for tablets
|
||||||
tilt_x = 0;
|
tilt_x = 0;
|
||||||
tilt_y = 0;
|
tilt_y = 0;
|
||||||
|
|
|
||||||
|
|
@ -367,6 +367,8 @@ void DarwinSendPointerEvents(int ev_type, int ev_button, int pointer_x, int poin
|
||||||
static int darwinFakeMouseButtonMask = 0;
|
static int darwinFakeMouseButtonMask = 0;
|
||||||
int i, num_events;
|
int i, num_events;
|
||||||
|
|
||||||
|
//DEBUG_LOG("x=%d, y=%d, p=%f, tx=%f, ty=%f\n", pointer_x, pointer_y, pressure, tilt_x, tilt_y);
|
||||||
|
|
||||||
if(!darwinEvents) {
|
if(!darwinEvents) {
|
||||||
ErrorF("DarwinSendPointerEvents called before darwinEvents was initialized\n");
|
ErrorF("DarwinSendPointerEvents called before darwinEvents was initialized\n");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue