Bug 350614

Summary: panel struts broken when using QT_DEVICE_PIXEL_RATIO
Product: [Plasma] plasmashell Reporter: David Edmundson <kde>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David Edmundson 2015-07-25 16:44:05 UTC
Panel struts to X are wrong when using QT_DEVICE_PIXEL_RATIO=2

Qt lies about the screen size, we tell kwin the wrong positions and then we get windows overlapping the panels
Comment 1 David Edmundson 2015-08-07 21:47:04 UTC
Git commit b932fe461a555f09886d577f734e6d6624654f76 by David Edmundson.
Committed on 07/08/2015 at 21:43.
Pushed by davidedmundson into branch 'master'.

Handle clients having a different device pixel ratio

Qt scales down the size of QScreens by the device pixel ratio; we should
make our windowing APIs match.

X (and KWin) deal with device dependent pixels, so everything needs to
be converted when communitcating geometry.

Abstraction happens in the main kwindowsystem so X and Wayland are both
supported.
Related: bug 350865, bug 347951
REVIEW: 124648

M  +20   -9    src/kwindowsystem.cpp

http://commits.kde.org/kwindowsystem/b932fe461a555f09886d577f734e6d6624654f76