mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
raise docks when there isnt any active window
--there are cases that the window manager doesnt return any active window at all. In such cases we can assume that our docks/panels dont have to be hidden. BUG: 398052 FIXED-IN: 0.8.1 (cherry picked from commit 66817695feb76c521b5f7a3dfa1f917b39c4de7b)
This commit is contained in:
parent
4a2db533d5
commit
fbb7f79974
@ -444,10 +444,17 @@ void VisibilityManagerPrivate::dodgeActive(WindowId wid)
|
||||
return;
|
||||
|
||||
if (!winfo.isActive()) {
|
||||
if (winfo.isPlasmaDesktop())
|
||||
if (winfo.isPlasmaDesktop()) {
|
||||
raiseDock(true);
|
||||
}
|
||||
|
||||
winfo = wm->requestInfo(wm->activeWindow());
|
||||
|
||||
if (!winfo.isValid()) {
|
||||
//! very rare case that window manager doesnt have any active window at all
|
||||
raiseDock(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//!dont send false raiseDock signal when containing mouse
|
||||
@ -477,6 +484,12 @@ void VisibilityManagerPrivate::dodgeMaximized(WindowId wid)
|
||||
raiseDock(true);
|
||||
|
||||
winfo = wm->requestInfo(wm->activeWindow());
|
||||
|
||||
if (!winfo.isValid()) {
|
||||
//! very rare case that window manager doesnt have any active window at all
|
||||
raiseDock(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
auto isMaxVert = [&]() noexcept -> bool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user