Notify n-workspaces on context switch

This commit is contained in:
Bruce Leidl 2024-05-06 18:30:52 -04:00
parent 8acc2e2a4d
commit eb392568ae
2 changed files with 5 additions and 6 deletions

View File

@ -1073,6 +1073,7 @@ meta_workspace_manager_workspace_switched (MetaWorkspaceManager *workspace_manag
g_signal_emit (workspace_manager,
workspace_manager_signals[CONTEXT_SWITCHED],
0, NULL);
g_object_notify (G_OBJECT (workspace_manager), "n-workspaces");
} else {
g_signal_emit (workspace_manager,
workspace_manager_signals[WORKSPACE_SWITCHED], 0,

View File

@ -86,12 +86,6 @@ void meta_workspace_manager_override_workspace_layout (MetaWorkspaceManager *wor
int n_rows,
int n_columns);
META_EXPORT
MetaWorkspaceContext *
meta_workspace_manager_active_context (MetaWorkspaceManager *workspace_manager);
META_EXPORT
guint meta_workspace_manager_active_context_id (MetaWorkspaceManager *workspace_manager);
META_EXPORT
int meta_workspace_manager_get_layout_columns (MetaWorkspaceManager *workspace_manager);
@ -99,6 +93,10 @@ int meta_workspace_manager_get_layout_columns (MetaWorkspaceManager *workspace_m
META_EXPORT
int meta_workspace_manager_get_layout_rows (MetaWorkspaceManager *workspace_manager);
META_EXPORT
MetaWorkspaceContext *
meta_workspace_manager_active_context (MetaWorkspaceManager *workspace_manager);
META_EXPORT
guint meta_workspace_manager_active_context_id (MetaWorkspaceManager *workspace_manager);