Commit 7eb05552 authored by Martin Flöser's avatar Martin Flöser

Reset most_recently_raised when removing ShellClient

This time without a test case that could trigger a crash as the only
reading usage of the variable could luckily not crash.

Reviewers: #plasma, #kwin

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision:
parent bd158a63
......@@ -425,6 +425,9 @@ void Workspace::init()
connect(w, &WaylandServer::shellClientRemoved, this,
[this] (ShellClient *c) {
if (c == most_recently_raised) {
most_recently_raised = nullptr;
if (c == delayfocus_client) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment