From 0fc2c36ee7c4cd6ad92d697f3e61e47b42b23169 Mon Sep 17 00:00:00 2001 From: Richard Hult Date: Thu, 29 Jan 2009 14:02:00 +0100 Subject: [PATCH] Use event_type we already have instead of regetting it --- gdk/quartz/gdkevents-quartz.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index 333cd846ac..d207082c87 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -1403,7 +1403,7 @@ gdk_event_translate (GdkEvent *event, /* Keep track of button state, since we don't get that information * for key events. */ - switch ([nsevent type]) + switch (event_type) { case NSLeftMouseDown: case NSRightMouseDown: @@ -1480,9 +1480,9 @@ gdk_event_translate (GdkEvent *event, /* We only activate the application on click if it's not already active, * this matches most use cases of native apps (no click-through). */ - if (([nsevent type] == NSRightMouseDown || - [nsevent type] == NSOtherMouseDown || - [nsevent type] == NSLeftMouseDown) && ![NSApp isActive]) + if ((event_type == NSRightMouseDown || + event_type == NSOtherMouseDown || + event_type == NSLeftMouseDown) && ![NSApp isActive]) { [NSApp activateIgnoringOtherApps:YES]; return_val = FALSE;