mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53: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) {
|
||||
auto* node = this->getWorkspaceFocusedNode(workspace);
|
||||
if (node == nullptr) return;
|
||||
if (g_pCompositor->m_pLastWindow != nullptr && g_pCompositor->m_pLastWindow->m_bIsFloating) {
|
||||
g_pCompositor->closeWindow(g_pCompositor->m_pLastWindow);
|
||||
} else {
|
||||
auto* node = this->getWorkspaceFocusedNode(workspace);
|
||||
if (node == nullptr) return;
|
||||
|
||||
std::vector<CWindow*> windows;
|
||||
node->appendAllWindows(windows);
|
||||
std::vector<CWindow*> windows;
|
||||
node->appendAllWindows(windows);
|
||||
|
||||
for (auto* window: windows) {
|
||||
window->setHidden(false);
|
||||
g_pCompositor->closeWindow(window);
|
||||
for (auto* window: windows) {
|
||||
window->setHidden(false);
|
||||
g_pCompositor->closeWindow(window);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue