summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2023-04-12 22:55:32 +0100
committerDavid Edmundson <davidedmundson@kde.org>2023-06-01 14:15:15 +0100
commit7358255e45d9fa30cb213f1bb419fe8c46157a6c (patch)
treeeefd23d5fd479bf22dfbc544353860c7f8315ab5 /src
parentd99465c94f0653573f891356c0368f76cb110ccc (diff)
Client: Remove check for BypassWindowManagerHint when setting viewport
This check was put in initially to leave a code path for clients to opt-out of Qt controlled viewport management. In practice, many X11 applications have this flag set for other purposes and this does more harm than good. Given this was never a documented feature, and it won't have been used in practice given fractional scaling is not heavily deployed outside a few linux desktops it is safe to remove. The highDpiScaleFactorRoundingPolicy remains a way to opt-out. Pick-to: 6.5 Change-Id: I2d111a76695dec27e9ee1a2a233252b70379a329 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
Diffstat (limited to 'src')
-rw-r--r--src/client/qwaylandwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index e3070c936..d4a499cce 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -186,7 +186,7 @@ void QWaylandWindow::initWindow()
}
}
- if (display()->viewporter() && !window()->flags().testFlag(Qt::BypassWindowManagerHint)) {
+ if (display()->viewporter()) {
mViewport.reset(new QWaylandViewport(display()->createViewport(this)));
}