From d0d8a3d4eace0a88b4283bae72d03206e2f0ed99 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 9 Oct 2013 15:36:51 -0400 Subject: [PATCH] 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 --- src/core/window.c | 9 ++------- src/meta/window.h | 3 +-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index c7c249518..f5826bbb6 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -6563,8 +6563,7 @@ meta_window_property_notify (MetaWindow *window, void meta_window_change_workspace_by_index (MetaWindow *window, gint space_index, - gboolean append, - guint32 timestamp) + gboolean append) { MetaWorkspace *workspace; MetaScreen *screen; @@ -6583,11 +6582,7 @@ meta_window_change_workspace_by_index (MetaWindow *window, meta_screen_get_workspace_by_index (screen, space_index); if (!workspace && append) - { - if (timestamp == CurrentTime) - timestamp = meta_display_get_current_time_roundtrip (window->display); - workspace = meta_screen_append_new_workspace (screen, FALSE, timestamp); - } + workspace = meta_screen_append_new_workspace (screen, FALSE, CurrentTime); if (workspace) { diff --git a/src/meta/window.h b/src/meta/window.h index 9679454ad..424d5378e 100644 --- a/src/meta/window.h +++ b/src/meta/window.h @@ -140,8 +140,7 @@ void meta_window_unset_demands_attention (MetaWindow *window); const char* meta_window_get_startup_id (MetaWindow *window); void meta_window_change_workspace_by_index (MetaWindow *window, gint space_index, - gboolean append, - guint32 timestamp); + gboolean append); void meta_window_change_workspace (MetaWindow *window, MetaWorkspace *workspace); GObject *meta_window_get_compositor_private (MetaWindow *window);