GNOME Bugzilla – Bug 691426
get_current_desktop does not interpret property data correctly
Last modified: 2013-03-23 02:20:20 UTC
Created attachment 233080 [details] [review] patch to fix the problem The property data for _NET_CURRENT_DESKTOP is type CARDINAL32 and should be interpreted as an array of longs but is being interpreted as an array of chars. Notably, this would result in the active desktop almost always being 0 on big-endian systems, but never the right number either. It would also give incorrect results on little-endian systems if the number of desktops exceeds 256. This bug exists at least back to the 3.4 series.
Review of attachment 233080 [details] [review]: Look right.
Good catch, thanks! Pushed to gtk-3-6 as commit da7c2d6, and to master as commit c6eddaa.
*** Bug 691836 has been marked as a duplicate of this bug. ***