GNOME Bugzilla – Bug 749561
gtk3: add support for randr 1.5 monitor objects.
Last modified: 2015-05-22 11:41:40 UTC
Upstream XRandR has a new monitor object, gtk should use it where available instead of the crtc/output objects, to support tiled monitors.
Created attachment 303555 [details] [review] patch to add support for randr 1.5 protocol
Review of attachment 303555 [details] [review]: OK.
Review of attachment 303555 [details] [review]: Not sure if this patch is entirely correct wrt primary monitor index after sorting the array. ::: gdk/x11/gdkscreen-x11.c @@ +657,3 @@ + XRRFreeMonitors (rr_monitors); + + g_array_sort (monitors, Sorting this array invalidates primary_idx variable, IMO.
Thanks for pointing that out! Fixed now, I hope
There is a typo in "for (i - 0; i < x11_screen->n_monitors; i++)". It should be "i = 0" instead of substracting a zero.