From b0f50a35d6662bccc72f09bde9e2fc09162e3172 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Fri, 11 Nov 2005 16:02:50 +0000 Subject: [PATCH] Use SN timestamp if available. (Old svn revision: 18813) --- src/startup_notification.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/startup_notification.c b/src/startup_notification.c index 048dc38ee..a61f9e35d 100644 --- a/src/startup_notification.c +++ b/src/startup_notification.c @@ -274,7 +274,17 @@ sn_client_startup_properties (Client * c) if (sequence != NULL) { int workspace; + Time timestamp; + /* Set initial time */ + c->user_time = sn_startup_sequence_get_timestamp (sequence); + timestamp = sn_startup_sequence_get_timestamp (sequence); + if (timestamp > c->user_time) + { + c->user_time = timestamp; + } + + /* Set initial workspace */ if (!FLAG_TEST (c->xfwm_flags, XFWM_FLAG_WORKSPACE_SET)) { workspace = sn_startup_sequence_get_workspace (sequence); -- GitLab