mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
check m_pLastMonitor->specialWorkspaceID before checking activeWorkspace
This commit is contained in:
parent
107cb86304
commit
782f32e83d
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
|||
int workspace_for_action(bool allow_fullscreen = false) {
|
||||
if (g_pLayoutManager->getCurrentLayout() != g_Hy3Layout.get()) return -1;
|
||||
|
||||
int workspace_id = g_pCompositor->m_pLastMonitor->activeWorkspace;
|
||||
int workspace_id = g_pCompositor->m_pLastMonitor->specialWorkspaceID;
|
||||
if (workspace_id == 0) workspace_id = g_pCompositor->m_pLastMonitor->activeWorkspace;
|
||||
|
||||
if (workspace_id == -1) return -1;
|
||||
auto* workspace = g_pCompositor->getWorkspaceByID(workspace_id);
|
||||
|
|
Loading…
Add table
Reference in a new issue