mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 10:43:40 +01:00
Fix node navigation breakage
This commit is contained in:
parent
cae91835af
commit
f306ecc689
1 changed files with 7 additions and 1 deletions
|
@ -1144,7 +1144,13 @@ void Hy3Layout::shiftFocus(int workspace, ShiftDirection direction, bool visible
|
|||
CWindow *source_window = g_pCompositor->m_pLastWindow;
|
||||
CWorkspace *source_workspace = g_pCompositor->getWorkspaceByID(workspace);
|
||||
|
||||
if(source_window == nullptr || (source_workspace && source_workspace->m_bHasFullscreenWindow)) {
|
||||
if (source_workspace) {
|
||||
source_window = source_workspace->m_pLastFocusedWindow;
|
||||
} else {
|
||||
source_window = g_pCompositor->m_pLastWindow;
|
||||
}
|
||||
|
||||
if (source_window == nullptr || (source_workspace && source_workspace->m_bHasFullscreenWindow)) {
|
||||
shiftFocusToMonitor(direction);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue