diff --git a/src/core/screen.c b/src/core/screen.c index 5d929c4b4..d02536cd8 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -2918,3 +2918,9 @@ meta_screen_get_active_workspace_index (MetaScreen *screen) return meta_workspace_index (active); } + +MetaWorkspace * +meta_screen_get_active_workspace (MetaScreen *screen) +{ + return screen->active_workspace; +} diff --git a/src/include/screen.h b/src/include/screen.h index 0b6ac44ba..c04bc7b54 100644 --- a/src/include/screen.h +++ b/src/include/screen.h @@ -61,4 +61,6 @@ MetaWorkspace *meta_screen_append_new_workspace (MetaScreen *screen, int meta_screen_get_active_workspace_index (MetaScreen *screen); +MetaWorkspace * meta_screen_get_active_workspace (MetaScreen *screen); + #endif