GNOME Bugzilla – Bug 764155
display: Remove unused variable
Last modified: 2016-07-14 12:55:46 UTC
.
Created attachment 324691 [details] [review] display: Remove unused variable
I think we might want to spelunk a little to check what it was used for, and whether it should really be removed.
Review of attachment 324691 [details] [review]: ++
(In reply to Rui Matos from comment #3) > Review of attachment 324691 [details] [review] [review]: > > ++ Did you check what it was used for?
(In reply to Bastien Nocera from comment #4) > Did you check what it was used for? Now I have. It seems like it was used to break out of the loop and avoid setting all outputs as primary but it doesn't seem like it was correct. Dave Airlie removed it in https://git.gnome.org/browse/gnome-control-center/commit/?id=0005c32ded0f3e81963493d4bcf9be9a9d2844fc but this logic is still wrong. I'm attaching a patch to fix it that can go on top of that variable removal.
Created attachment 324717 [details] [review] display: Ensure only one output is set as primary When switching an output to secondary we'd set all other outputs as primary. Instead, set only the first we find.
Review of attachment 324717 [details] [review]: That looks fine to me, but hard to test without the right hardware.
Comment on attachment 324717 [details] [review] display: Ensure only one output is set as primary Attachment 324717 [details] pushed as 6d825b9 - display: Ensure only one output is set as primary
this should have been closed