Update _NET_CURRENT_DESKTOP on workspace removal

When we delete a workspace before the active workspace, we need
to upate the _NET_CURRENT_DESKTOP since the active workspace index
changes. To do this workspace.c:set_active_space_hint() is moved
to screen.c:meta_screen_set_active_workspace_hint() so that it
can be shared.

https://bugzilla.gnome.org/show_bug.cgi?id=640581
This commit is contained in:
Owen W. Taylor
2011-01-25 16:27:31 -05:00
parent ad707be01e
commit 4c4c720dc1
3 changed files with 37 additions and 28 deletions

View File

@@ -255,4 +255,6 @@ void meta_screen_workspace_switched (MetaScreen *screen,
int to,
MetaMotionDirection direction);
void meta_screen_set_active_workspace_hint (MetaScreen *screen);
#endif