From d2820bf05efff197b3bd19c5adc4e4c8d91ce3d5 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 20 Mar 2019 17:42:37 +0100 Subject: [PATCH] Don't try to resize desktop or fullscreen windows Summary: those windows should always take all the space no matter what Test Plan: text areas on desktop or fullscreen windows don't cause resizes anymore Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D19922 --- abstract_client.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/abstract_client.cpp b/abstract_client.cpp index 54113a677e..034dc8f967 100644 --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -1902,6 +1902,11 @@ void AbstractClient::setVirtualKeyboardGeometry(const QRect &geo) m_virtualKeyboardGeometry = geo; + // Don't resize Desktop and fullscreen windows + if (isFullScreen() || isDesktop()) { + return; + } + if (!geo.intersects(m_keyboardGeometryRestore)) { return; }