[gtk+/gtk-3-6] GdkScreen: get a long X property correctly



commit da7c2d6a02c058cf87937511c0d0d77653f83025
Author: Geoff Reedy <geoff-gnome programmer-monk net>
Date:   Tue Feb 26 17:58:21 2013 -0600

    GdkScreen: get a long X property correctly
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691426
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 gdk/x11/gdkscreen-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index b5767b5..d87245e 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -298,7 +298,7 @@ get_current_desktop (GdkScreen *screen)
                       &data_return);
 
   if (type == XA_CARDINAL && format == 32 && n_items > 0)
-    workspace = (int) data_return[0];
+    workspace = ((long *) data_return)[0];
 
   if (data_return)
     XFree (data_return);


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