enter all outputs in wlr/workspaces

This commit is contained in:
vaxerski 2022-04-28 18:06:25 +02:00
parent 4b985d3e38
commit 726ba65785
2 changed files with 1 additions and 6 deletions

View file

@ -97,6 +97,7 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
// add a WLR workspace group
PNEWMONITOR->pWLRWorkspaceGroupHandle = wlr_ext_workspace_group_handle_v1_create(g_pCompositor->m_sWLREXTWorkspaceMgr);
wlr_ext_workspace_group_handle_v1_output_enter(PNEWMONITOR->pWLRWorkspaceGroupHandle, PNEWMONITOR->output);
// Workspace
const auto WORKSPACEID = monitorRule.defaultWorkspaceID == -1 ? g_pCompositor->m_lWorkspaces.size() + 1 /* Cuz workspaces doesnt have the new one yet and we start with 1 */ : monitorRule.defaultWorkspaceID;