activation: don't activate windows that don't accept keyboard input

It can change the active output without user interaction

BUG: 495537


(cherry picked from commit 71c9fd7bc0)

Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com>
wilder/Plasma/6.2
Xaver Hugl 1 year ago
parent 29030960b3
commit 1518659f96
  1. 2
      src/activation.cpp

@ -298,7 +298,7 @@ void Workspace::activateWindow(Window *window, bool force)
setActiveWindow(nullptr);
return;
}
if (!window->isClient() || window->isDeleted()) {
if (!window->isClient() || window->isDeleted() || !window->wantsInput()) {
return;
}
if (window->isHiddenByShowDesktop()) {

Loading…
Cancel
Save