diff options
author | David Edmundson <davidedmundson@kde.org> | 2023-06-01 23:15:44 +0100 |
---|---|---|
committer | David Edmundson <davidedmundson@kde.org> | 2023-07-05 14:09:31 +0100 |
commit | d0a5866f6fb31b4642421b1003d6d3abfd7a94ea (patch) | |
tree | c052cdf76427b6da4764e8248afc1db19863182b /src/gui/platform | |
parent | d2a73883ae110c423dce126d15c2b1c0df1b51a3 (diff) |
qgenericunixservices: Move x11 specific code to the Xcb backend
QGenericUnixServices is an abstract class subclassed by the wayland
backend for wayland specific functionality. This moves to a consistent
pattern where X11 code is also the X11 backend rather than guarded with
if statements.
Change-Id: I1cc7ebac811463451d744fdc034f5ad5fd022bc6
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/gui/platform')
-rw-r--r-- | src/gui/platform/unix/qgenericunixservices.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/platform/unix/qgenericunixservices.cpp b/src/gui/platform/unix/qgenericunixservices.cpp index 34d9c37e24..8896841356 100644 --- a/src/gui/platform/unix/qgenericunixservices.cpp +++ b/src/gui/platform/unix/qgenericunixservices.cpp @@ -554,9 +554,7 @@ QPlatformServiceColorPicker *QGenericUnixServices::colorPicker(QWindow *parent) QString QGenericUnixServices::portalWindowIdentifier(QWindow *window) { - if (QGuiApplication::platformName() == QLatin1String("xcb")) - return "x11:"_L1 + QString::number(window->winId(), 16); - + Q_UNUSED(window); return QString(); } |