Bug 350614 - panel struts broken when using QT_DEVICE_PIXEL_RATIO
Summary: panel struts broken when using QT_DEVICE_PIXEL_RATIO
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-25 16:44 UTC by David Edmundson
Modified: 2015-08-07 21:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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