https://bugs.kde.org/show_bug.cgi?id=495702

Zamundaaa <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/-/commit/5aa070d5f4 |ma/kwin/-/commit/63edb977e9
                   |a4c0ce1802aa94eec6ebf9bc9ed |9a860a5a167e210e6222a24115c
                   |ca9                         |593

--- Comment #8 from Zamundaaa <[email protected]> ---
Git commit 63edb977e99a860a5a167e210e6222a24115c593 by Xaver Hugl, on behalf of
Vlad Zahorodnii.
Committed on 20/10/2025 at 13:11.
Pushed by zamundaaa into branch 'Plasma/6.4'.

Fix Workspace::activateNextWindow() corrupting active output on hotplug

After 4ee32d7f71de7f7f9a24c44b9dc4dd31fd3be98f, layer shell windows are
removed when the Workspace::outputRemoved() signal is emitted.

The side-effect of that change is that the activateNextWindow() may be
called when the Workspace::outputRemoved() signal is emitted.

The activateNextWindow() function is interesting because it can set the
active output to the one of the Window.

If the next candidate window is on a just removed output, the Workspace
can end up with a dangling active output.

To prevent that case, this change moves active output cleanup code so it
is after the outputRemoved() signal is emitted and after windows are
re-arranged.
(cherry picked from commit 5aa070d5f4a4c0ce1802aa94eec6ebf9bc9edca9)

M  +116  -0    autotests/integration/workspace_test.cpp
M  +5    -1    src/workspace.cpp

https://invent.kde.org/plasma/kwin/-/commit/63edb977e99a860a5a167e210e6222a24115c593

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to