Changeset View
Changeset View
Standalone View
Standalone View
workspace.cpp
Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Line(s) | 371 | connect(w, &WaylandServer::shellClientAdded, this, | |||
---|---|---|---|---|---|
423 | } | 423 | } | ||
424 | ); | 424 | ); | ||
425 | connect(w, &WaylandServer::shellClientRemoved, this, | 425 | connect(w, &WaylandServer::shellClientRemoved, this, | ||
426 | [this] (ShellClient *c) { | 426 | [this] (ShellClient *c) { | ||
427 | m_allClients.removeAll(c); | 427 | m_allClients.removeAll(c); | ||
428 | if (c == delayfocus_client) { | 428 | if (c == delayfocus_client) { | ||
429 | cancelDelayFocus(); | 429 | cancelDelayFocus(); | ||
430 | } | 430 | } | ||
431 | if (c == last_active_client) { | ||||
432 | last_active_client = nullptr; | ||||
433 | } | ||||
431 | clientHidden(c); | 434 | clientHidden(c); | ||
432 | emit clientRemoved(c); | 435 | emit clientRemoved(c); | ||
433 | markXStackingOrderAsDirty(); | 436 | markXStackingOrderAsDirty(); | ||
434 | updateStackingOrder(true); | 437 | updateStackingOrder(true); | ||
435 | updateClientArea(); | 438 | updateClientArea(); | ||
436 | } | 439 | } | ||
437 | ); | 440 | ); | ||
438 | } | 441 | } | ||
▲ Show 20 Lines • Show All 1336 Lines • Show Last 20 Lines |