XQuartz: Don't subtract the titlebar off of the pointer_y

(cherry picked from commit 00a9567acc)
This commit is contained in:
Jeremy Huddleston 2008-04-26 17:04:49 -07:00
parent b9ca789635
commit b114d4e861
2 changed files with 2 additions and 2 deletions

View File

@ -867,8 +867,6 @@ static void send_nsevent (NSEventType type, NSEvent *e) {
pointer_y = (screen.origin.y + screen.size.height) - location.y;
}
pointer_y -= aquaMenuBarHeight;
pressure = 0; // for tablets
tilt_x = 0;
tilt_y = 0;

View File

@ -367,6 +367,8 @@ void DarwinSendPointerEvents(int ev_type, int ev_button, int pointer_x, int poin
static int darwinFakeMouseButtonMask = 0;
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) {
ErrorF("DarwinSendPointerEvents called before darwinEvents was initialized\n");
return;