mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
wayland/toplevel: clear activeToplevel on deactivation
This commit is contained in:
parent
15a8409765
commit
cf1a2aeb2d
2 changed files with 6 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ set shell id.
|
|||
- Fixed ClippingRectangle related crashes.
|
||||
- Fixed crashes when monitors are unplugged.
|
||||
- Fixed crashes when default pipewire devices are lost.
|
||||
- Fixed ToplevelManager not clearing activeToplevel on deactivation.
|
||||
- Desktop action order is now preserved.
|
||||
|
||||
## Packaging Changes
|
||||
|
|
|
|||
|
|
@ -161,7 +161,11 @@ void ToplevelManager::onToplevelReady(impl::ToplevelHandle* handle) {
|
|||
|
||||
void ToplevelManager::onToplevelActiveChanged() {
|
||||
auto* toplevel = qobject_cast<Toplevel*>(this->sender());
|
||||
if (toplevel->activated()) this->setActiveToplevel(toplevel);
|
||||
if (toplevel->activated()) {
|
||||
this->setActiveToplevel(toplevel);
|
||||
} else if (toplevel == this->mActiveToplevel) {
|
||||
this->setActiveToplevel(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
void ToplevelManager::onToplevelClosed() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue