kwin/plugins/qpa
David Edmundson 2df9d22a08 Add high DPI support to internal KWin windows
Summary:
So far we didn't try to do high DPI on kwin internal windows, such as
the user context menu and tab bars and whatever.

Due to wayland scaling they were the correct phyiscal size but upscaled.
This patch fixes our QPA to enable Qt's high-dpi support.

BUG: 402853

Note icons are still low res. This is because the global
QGuiApplication::devicePixelRatio which is the max of all connected
screens is static for the duration of the app. QIcon uses this when
determining the DPR to use. This will require a Qt change.

Test Plan:
Ran at 2x on my normal DPI screen (as that's easier to see anything)
* User action menu is high DPI
* Window deco tooltips are still fine
* Tab switcher is high DPI
* Overlay in present windows Desktop grid are still ok

Reviewers: #kwin

Subscribers: zzag, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18042
2019-01-14 13:59:05 +00:00
..
CMakeLists.txt Bring FindFontconfig.cmake up to ECM standards 2018-12-18 18:11:11 +01:00
abstractplatformcontext.cpp Request a high-priority EGL contexts 2018-03-29 20:34:22 +09:00
abstractplatformcontext.h Fix the build on armhf/aarch64 2018-03-06 09:25:33 +05:30
backingstore.cpp Add high DPI support to internal KWin windows 2019-01-14 13:59:05 +00:00
backingstore.h Add high DPI support to internal KWin windows 2019-01-14 13:59:05 +00:00
integration.cpp Remove unused private Qt include 2018-11-04 17:02:19 +01:00
integration.h Fix the build on armhf/aarch64 2018-03-06 09:25:33 +05:30
kwin.json [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
main.cpp [qpa] Fix overloaded-virtual warning 2017-07-30 08:22:32 +02:00
nativeinterface.cpp [qpa] Prevent crash due to Surface getting null 2017-07-06 19:14:15 +02:00
nativeinterface.h [plugins/qpa] Add a roundtrip platform function 2016-03-16 11:10:14 +01:00
platformcontextwayland.cpp [plugins/qpa] Call makeCurrent on the QOpenGLContext instead of the one in the platform context 2016-08-26 07:38:04 +02:00
platformcontextwayland.h [wayland] Add a QPA plugin for kwin_wayland 2015-08-25 14:33:50 +02:00
platformcursor.cpp [plugins/qpa] Implement a custom QPlatformCursor 2016-02-17 12:42:12 +01:00
platformcursor.h [plugins/qpa] Implement a custom QPlatformCursor 2016-02-17 12:42:12 +01:00
screen.cpp [QPA] Implement Screen on top of internal Screens API 2017-10-19 18:03:10 +02:00
screen.h [QPA] Implement Screen on top of internal Screens API 2017-10-19 18:03:10 +02:00
sharingplatformcontext.cpp [plugins/qpa] Add explanatory comment 2018-10-05 14:38:55 +01:00
sharingplatformcontext.h [plugins/qpa] Drop unused variable AbstractPlatformContext::m_integration 2017-07-31 18:09:15 +02:00
window.cpp Add high DPI support to internal KWin windows 2019-01-14 13:59:05 +00:00
window.h Add high DPI support to internal KWin windows 2019-01-14 13:59:05 +00:00