https://bugs.kde.org/show_bug.cgi?id=356228

Sebastian Kügler <se...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|http://commits.kde.org/libk |http://commits.kde.org/libk
                   |screen/da2edf3ef61a70eb2fbd |screen/c3cb380aa0835c268a84
                   |7b5e757d605c1f5b000d        |a4c480854b91ab9a76f2

--- Comment #10 from Sebastian Kügler <se...@kde.org> ---
Git commit c3cb380aa0835c268a84a4c480854b91ab9a76f2 by Sebastian Kügler.
Committed on 19/04/2016 at 11:18.
Pushed by sebas into branch 'Plasma/5.6'.

Verify rotation when updating screen size in XRandR backend

When rotating a single screen to portrait and back to landscape, the
XRandR screen size is not updated.

When for example rotating a display of 1920x1080 portrait, the screen
size is changed to 1080x1920. XRandR::screenChanged() however is called
with rotation = 90 and size = 1920x1080. So the screen size stored
internally remains 1920x1080, instead of being updated to 1080x1920.
When you then rotate the screen back to landscape, it checks the new
screen size (1920x1080) against the stored (1920x1080) and does not
update the screen size (which is at this point 1080x1920).

This should solve https://bugs.kde.org/show_bug.cgi?id=356228 which has
photos of the incorrect behavior.

Patch-by: Pieterjan Camerlynck <pieterjan.camerly...@gmail.com>
Reviewed-by:Leslie Zhai <xiangzha...@gmail.com>

M  +6    -2    backends/xrandr/xrandr.cpp

http://commits.kde.org/libkscreen/c3cb380aa0835c268a84a4c480854b91ab9a76f2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to