[gtk+/client-side-windows: 218/284] Use event_type we already have instead of regetting it



commit 0fc2c36ee7c4cd6ad92d697f3e61e47b42b23169
Author: Richard Hult <richard imendio com>
Date:   Thu Jan 29 14:02:00 2009 +0100

    Use event_type we already have instead of regetting it
---
 gdk/quartz/gdkevents-quartz.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 333cd84..d207082 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]