mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-16 03:03:40 +01:00
Fix hy3:killactive not killing floating windows
This commit is contained in:
parent
ee8c49357f
commit
9a3f635db3
1 changed files with 11 additions and 7 deletions
|
@ -1867,15 +1867,19 @@ hastab:
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hy3Layout::killFocusedNode(int workspace) {
|
void Hy3Layout::killFocusedNode(int workspace) {
|
||||||
auto* node = this->getWorkspaceFocusedNode(workspace);
|
if (g_pCompositor->m_pLastWindow != nullptr && g_pCompositor->m_pLastWindow->m_bIsFloating) {
|
||||||
if (node == nullptr) return;
|
g_pCompositor->closeWindow(g_pCompositor->m_pLastWindow);
|
||||||
|
} else {
|
||||||
|
auto* node = this->getWorkspaceFocusedNode(workspace);
|
||||||
|
if (node == nullptr) return;
|
||||||
|
|
||||||
std::vector<CWindow*> windows;
|
std::vector<CWindow*> windows;
|
||||||
node->appendAllWindows(windows);
|
node->appendAllWindows(windows);
|
||||||
|
|
||||||
for (auto* window: windows) {
|
for (auto* window: windows) {
|
||||||
window->setHidden(false);
|
window->setHidden(false);
|
||||||
g_pCompositor->closeWindow(window);
|
g_pCompositor->closeWindow(window);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue