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/63edb977e9 |ma/kwin/-/commit/a0c63b75da
                   |9a860a5a167e210e6222a24115c |e838d305586c0deec92afa65e12
                   |593                         |00e

--- Comment #9 from Zamundaaa <[email protected]> ---
Git commit a0c63b75dae838d305586c0deec92afa65e1200e by Xaver Hugl, on behalf of
Vlad Zahorodnii.
Committed on 20/10/2025 at 21:12.
Pushed by zamundaaa into branch 'Plasma/6.5'.

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/a0c63b75dae838d305586c0deec92afa65e1200e

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

Reply via email to