diff options
-rw-r--r-- | src/compositor/wayland_wrapper/wlsurface.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.cpp b/src/compositor/wayland_wrapper/wlsurface.cpp index 223a350c4..92acac0c2 100644 --- a/src/compositor/wayland_wrapper/wlsurface.cpp +++ b/src/compositor/wayland_wrapper/wlsurface.cpp @@ -428,11 +428,10 @@ WaylandSurface::Type Surface::type() const bool Surface::isYInverted() const { + bool ret = false; #ifdef QT_COMPOSITOR_WAYLAND_GL Q_D(const Surface); - bool ret = false; - static bool negateReturn = qgetenv("QT_COMPOSITOR_NEGATE_INVERTED_Y").toInt(); if (!d->surfaceBuffer) { @@ -443,7 +442,7 @@ bool Surface::isYInverted() const #endif ret = true; - return ret^negateReturn; + return ret != negateReturn; } bool Surface::visible() const |