[gtk+] Refactor _gdk_input_other_event
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Refactor _gdk_input_other_event
- Date: Tue, 29 Sep 2009 12:46:44 +0000 (UTC)
commit abf7742beb53f8a2c8012a353299abc68b5dbaaf
Author: Thomas Jaeger <ThJaeger gmail com>
Date: Tue Sep 29 01:48:59 2009 -0400
Refactor _gdk_input_other_event
Signed-off-by: Thomas Jaeger <ThJaeger gmail com>
https://bugzilla.gnome.org/show_bug.cgi?id=588649
gdk/x11/gdkinput-xfree.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/x11/gdkinput-xfree.c b/gdk/x11/gdkinput-xfree.c
index 50bb94b..e52ef2a 100644
--- a/gdk/x11/gdkinput-xfree.c
+++ b/gdk/x11/gdkinput-xfree.c
@@ -237,7 +237,6 @@ _gdk_input_other_event (GdkEvent *event,
GdkWindowObject *priv;
GdkInputWindow *iw;
GdkDevicePrivate *gdkdev;
- gint return_val;
GdkEventType event_type;
int x, y;
GdkDisplay *display = GDK_WINDOW_DISPLAY (event_window);
@@ -280,18 +279,19 @@ _gdk_input_other_event (GdkEvent *event,
if (!display->ignore_core_events && priv->extension_events != 0)
gdk_input_check_proximity (GDK_WINDOW_DISPLAY (window));
- return_val = _gdk_input_common_other_event (event, xevent, window, gdkdev);
+ if (!_gdk_input_common_other_event (event, xevent, window, gdkdev))
+ return FALSE;
- if (return_val && event->type == GDK_BUTTON_PRESS)
+ if (event->type == GDK_BUTTON_PRESS)
iw->button_down_window = window;
- if (return_val && event->type == GDK_BUTTON_RELEASE)
+ if (event->type == GDK_BUTTON_RELEASE)
iw->button_down_window = NULL;
- if (return_val && event->type == GDK_PROXIMITY_OUT &&
+ if (event->type == GDK_PROXIMITY_OUT &&
display->ignore_core_events)
gdk_input_check_proximity (GDK_WINDOW_DISPLAY (window));
- return return_val;
+ return TRUE;
}
gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]