From 50645e8dbd493753db5ea0b3578059c745cd168d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 20 Jul 2016 13:36:24 +0200 Subject: [PATCH] [platforms/x11] Properly reposition nested windows on resize events Summary: The position of the output being resized was adjusted instead of only the other outputs. Test Plan: Resized windows, verified xrandr Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D2235 --- plugins/platforms/x11/windowed/x11windowed_backend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/platforms/x11/windowed/x11windowed_backend.cpp b/plugins/platforms/x11/windowed/x11windowed_backend.cpp index 3fe5c6297b..20c84dfad3 100644 --- a/plugins/platforms/x11/windowed/x11windowed_backend.cpp +++ b/plugins/platforms/x11/windowed/x11windowed_backend.cpp @@ -371,6 +371,7 @@ void X11WindowedBackend::updateSize(xcb_configure_notify_event_t *event) if (s != (*it).size) { (*it).size = s; int x = (*it).internalPosition.x() + s.width(); + it++; for (; it != m_windows.end(); ++it) { (*it).internalPosition.setX(x); x += (*it).size.width();