parent
cd8c559cea
commit
33ae18f25f
@ -0,0 +1,16 @@
|
||||
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
|
||||
index 0bf250ea..2d1bb645 100644
|
||||
--- a/src/gui/configure.cmake
|
||||
+++ b/src/gui/configure.cmake
|
||||
@@ -174,9 +174,9 @@ qt_config_compile_test(egl_x11
|
||||
int main(void)
|
||||
{
|
||||
/* BEGIN TEST: */
|
||||
-Display *dpy = EGL_DEFAULT_DISPLAY;
|
||||
+Display *dpy = reinterpret_cast<Display *>(EGL_DEFAULT_DISPLAY);
|
||||
EGLNativeDisplayType egldpy = XOpenDisplay(\"\");
|
||||
-dpy = egldpy;
|
||||
+dpy = reinterpret_cast<Display *>(egldpy);
|
||||
EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
XDestroyWindow(dpy, w);
|
||||
XCloseDisplay(dpy);
|
@ -1,19 +0,0 @@
|
||||
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
|
||||
index 08a00d82..f555fb4f 100644
|
||||
--- a/src/gui/kernel/qguiapplication.cpp
|
||||
+++ b/src/gui/kernel/qguiapplication.cpp
|
||||
@@ -1411,13 +1411,7 @@ void QGuiApplicationPrivate::createPlatformIntegration()
|
||||
bool isGnome = false;
|
||||
const QByteArray waylandPlatformName = defaultIsWayland ? platformName : "wayland";
|
||||
if (hasWaylandDisplay || isWaylandSessionType) {
|
||||
- const QByteArray currentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toLower();
|
||||
- const QByteArray sessionDesktop = qgetenv("XDG_SESSION_DESKTOP").toLower();
|
||||
- isGnome = currentDesktop.contains("gnome") || sessionDesktop.contains("gnome");
|
||||
- if (isGnome)
|
||||
- preferredPlatformOrder.append(waylandPlatformName);
|
||||
- else
|
||||
- preferredPlatformOrder.prepend(waylandPlatformName);
|
||||
+ preferredPlatformOrder.prepend(waylandPlatformName);
|
||||
|
||||
if (defaultIsWayland)
|
||||
platformName.clear();
|
@ -1 +1 @@
|
||||
SHA512 (qtbase-everywhere-src-6.2.0.tar.xz) = 3ed301a531633e1e72da7833d1eea47edaf7e5474678a16ec29080e34de1d0def7000b68aa96fa18779880e3aa7b1a9b7c0cf699de2b4cba2c7de84442722fda
|
||||
SHA512 (qtbase-everywhere-src-6.2.1.tar.xz) = 9c1c3db8589ce085e1e895dfe6346f2f7a1928defb19e5ea87829f05138f4ceb78e8390c70bda86f430f5c059c4ab73a28e230f792be3cccf38951bdc1ee5dc2
|
||||
|
Loading…
Reference in new issue