GNOME Bugzilla – Bug 578109
dragging of rotated monitors snaps wrongly
Last modified: 2009-08-20 22:09:41 UTC
the bug has been opened on https://bugs.launchpad.net/bugs/355892 "You can drag monitors around in gnome-display-properties, and their edges snap together nicely. However if you rotate one of the monitors left (or right), it snaps at the wrong places (the snapping code doesn't swap the width and the height), leaving either a space between the monitors, or making them overlap. I made a screencast with Istanbul, but since Istanbul's frame rate is measured in seconds per frame rather than the other way around, that screencast is utterly useless. Then I made a screencast with Byzanz, which, hopefully, will work better. gnome-control-center 1:2.26.0-0ubuntu1 http://launchpadlibrarian.net/24846470/wtf.gif # screencast (601.4 KiB, image/gif) "
Created attachment 132407 [details] [review] Patch to fix the reported bug This patch will rotate height and width in the get_geometry() function, so that all edge snapping, virtual size verifications etc. work correctly. Rotating the display using cairo_rotate() is no longer necessary.
The patch seems to work ok for me.
Created attachment 141273 [details] [review] don't need to figure out the angle either, then...