From d0063d0972b29e9a2d4bdff837e3d4c23ac2e6cc Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Tue, 22 Jan 2019 14:38:44 +0100 Subject: Client: Fix incorrect decoration size when QT_SCALE_FACTOR is set [ChangeLog][QPA plugin] Fixed a bug where window decorations were to small for for the content when QT_SCALE_FACTOR was set. Fixes: QTBUG-72993 Change-Id: I1ed26e038c27f7c4454a6bcc04f0849e4af789e7 Reviewed-by: Paul Olav Tvete --- src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hardwareintegration') diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp index a8ee9a43a..6455b6fa9 100644 --- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp +++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp @@ -147,9 +147,9 @@ public: { QOpenGLTextureCache *cache = QOpenGLTextureCache::cacheForContext(m_context->context()); - QRect windowRect = window->window()->frameGeometry(); + QSize surfaceSize = window->surfaceSize(); int scale = window->scale() ; - glViewport(0, 0, windowRect.width() * scale, windowRect.height() * scale); + glViewport(0, 0, surfaceSize.width() * scale, surfaceSize.height() * scale); glDisable(GL_DEPTH_TEST); glDisable(GL_BLEND); -- cgit v1.2.3