From 3ba316e6bf03d3c25cf0f1664a0f28c28c90e5fe Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sun, 16 Jan 2022 19:01:45 +0200 Subject: [PATCH] wayland: Don't raise window when entering fullscreen mode If the window is inactive and it enters fullscreen mode for some reason, it can create a situation where keyboard goes to a window occluded by the fullscreen window. This change makes XdgToplevelClient::setFullScreen() not raise the window. It's the responsibility of whoever requested the fullscreen mode change. If the configure event is acknowledged, the window's stack layer will be invalidated and recomputed. If the window is active, it will be promoted to the ActiveLayer, otherwise its stack position won't change. --- src/xdgshellclient.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/xdgshellclient.cpp b/src/xdgshellclient.cpp index 2289529cf6..98ae6b1a16 100644 --- a/src/xdgshellclient.cpp +++ b/src/xdgshellclient.cpp @@ -1602,10 +1602,6 @@ void XdgToplevelClient::setFullScreen(bool set, bool user) } m_isRequestedFullScreen = set; - if (set) { - workspace()->raiseClient(this); - } - configureDecoration(); if (set) {