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:
Geoff Reedy 2013-02-26 17:58:21 -06:00 committed by Federico Mena Quintero
parent 560597da05
commit c6eddaafed

View File

@ -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);