forked from AuroraMiddleware/gtk
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>
This commit is contained in:
parent
560597da05
commit
c6eddaafed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user