[gedit] Use gdk_display_get_device_state.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use gdk_display_get_device_state.
- Date: Mon, 27 Dec 2010 16:39:19 +0000 (UTC)
commit 66ce4ca5ff4a2bea757a1194f7cd21ae649ee266
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Dec 27 17:37:57 2010 +0100
Use gdk_display_get_device_state.
gedit/gedit-window.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 6d1f527..95490e0 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -3193,15 +3193,17 @@ on_fullscreen_controls_leave_notify_event (GtkWidget *widget,
{
GdkDisplay *display;
GdkScreen *screen;
+ GdkDevice *device;
gint w, h;
gint x, y;
display = gdk_display_get_default ();
screen = gtk_window_get_screen (GTK_WINDOW (window));
+ device = gdk_event_get_device ((GdkEvent *)event);
gtk_window_get_size (GTK_WINDOW (window->priv->fullscreen_controls), &w, &h);
- gdk_display_get_pointer (display, &screen, &x, &y, NULL);
-
+ gdk_display_get_device_state (display, device, &screen, &x, &y, NULL);
+
/* gtk seems to emit leave notify when clicking on tool items,
* work around it by checking the coordinates
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]