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
This commit is contained in:
Marco Martin 2019-03-20 17:42:37 +01:00
parent 1f3fd63790
commit d2820bf05e

View file

@ -1902,6 +1902,11 @@ void AbstractClient::setVirtualKeyboardGeometry(const QRect &geo)
m_virtualKeyboardGeometry = geo; m_virtualKeyboardGeometry = geo;
// Don't resize Desktop and fullscreen windows
if (isFullScreen() || isDesktop()) {
return;
}
if (!geo.intersects(m_keyboardGeometryRestore)) { if (!geo.intersects(m_keyboardGeometryRestore)) {
return; return;
} }