[gtk+] GdkScreen: get a long X property correctly



commit c6eddaafed94bc47f197bfbea90ac9c50adf8f2d
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 7147892..760da2b 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -285,7 +285,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]