window: Remove timestamp argument from change_workspace_by_index

It's unused, since we aren't activating the workspace.

https://bugzilla.gnome.org/show_bug.cgi?id=709776
This commit is contained in:
Jasper St. Pierre 2013-10-09 15:36:51 -04:00
parent bdf5f88349
commit d0d8a3d4ea
2 changed files with 3 additions and 9 deletions

View File

@ -6563,8 +6563,7 @@ meta_window_property_notify (MetaWindow *window,
void void
meta_window_change_workspace_by_index (MetaWindow *window, meta_window_change_workspace_by_index (MetaWindow *window,
gint space_index, gint space_index,
gboolean append, gboolean append)
guint32 timestamp)
{ {
MetaWorkspace *workspace; MetaWorkspace *workspace;
MetaScreen *screen; MetaScreen *screen;
@ -6583,11 +6582,7 @@ meta_window_change_workspace_by_index (MetaWindow *window,
meta_screen_get_workspace_by_index (screen, space_index); meta_screen_get_workspace_by_index (screen, space_index);
if (!workspace && append) if (!workspace && append)
{ workspace = meta_screen_append_new_workspace (screen, FALSE, CurrentTime);
if (timestamp == CurrentTime)
timestamp = meta_display_get_current_time_roundtrip (window->display);
workspace = meta_screen_append_new_workspace (screen, FALSE, timestamp);
}
if (workspace) if (workspace)
{ {

View File

@ -140,8 +140,7 @@ void meta_window_unset_demands_attention (MetaWindow *window);
const char* meta_window_get_startup_id (MetaWindow *window); const char* meta_window_get_startup_id (MetaWindow *window);
void meta_window_change_workspace_by_index (MetaWindow *window, void meta_window_change_workspace_by_index (MetaWindow *window,
gint space_index, gint space_index,
gboolean append, gboolean append);
guint32 timestamp);
void meta_window_change_workspace (MetaWindow *window, void meta_window_change_workspace (MetaWindow *window,
MetaWorkspace *workspace); MetaWorkspace *workspace);
GObject *meta_window_get_compositor_private (MetaWindow *window); GObject *meta_window_get_compositor_private (MetaWindow *window);