diff options
Diffstat (limited to 'libsn/sn-launcher.c')
-rw-r--r-- | libsn/sn-launcher.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libsn/sn-launcher.c b/libsn/sn-launcher.c index 2707ccc..8bd6fc9 100644 --- a/libsn/sn-launcher.c +++ b/libsn/sn-launcher.c @@ -41,6 +41,7 @@ struct SnLauncherContext char *name; char *description; int workspace; + Time timestamp; char *wmclass; char *binary_name; char *icon_name; @@ -80,6 +81,7 @@ sn_launcher_context_new (SnDisplay *display, sn_display_ref (context->display); context->workspace = -1; + context->timestamp = 0; sn_list_prepend (context_list, context); @@ -177,6 +179,7 @@ sn_launcher_context_initiate (SnLauncherContext *context, char *values[MAX_PROPS]; char *message; char workspacebuf[257]; + char timestampbuf[257]; char screenbuf[257]; if (context->startup_id != NULL) @@ -209,7 +212,8 @@ sn_launcher_context_initiate (SnLauncherContext *context, sn_free (canonicalized_launcher); sn_free (canonicalized_launchee); - + + context->timestamp = timestamp; context->startup_id = s; i = 0; @@ -223,6 +227,11 @@ sn_launcher_context_initiate (SnLauncherContext *context, values[i] = screenbuf; ++i; + names[i] = "TIMESTAMP"; + sprintf (timestampbuf, "%lu", context->timestamp); + values[i] = timestampbuf; + ++i; + if (context->name != NULL) { names[i] = "NAME"; |