diff options
author | Stefan Sperling <stsp@stsp.name> | 2014-02-18 14:14:18 +0100 |
---|---|---|
committer | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2014-09-02 16:41:27 +0200 |
commit | b00c936aa1629cc2d3b50c8011ccaa3ccd3df7a8 (patch) | |
tree | d703c03c9e83140eb2c6c8d9c2e3394221af954d /libwnck/tasklist.c | |
parent | c0dc096f48b57a41c19a54b1669e39e842aaf6ab (diff) | |
download | libwnck-b00c936aa1629cc2d3b50c8011ccaa3ccd3df7a8.tar.gz |
TaskList: use new Startup Notification API
The startup-notification API was recently fixed to use pointers to 'time_t'
instead of pointers to 'long' in the functions
sn_startup_sequence_get_initiated_time() and
sn_startup_sequence_get_last_active_time(). See
http://cgit.freedesktop.org/startup-notification/commit/?id=a7e49fefde18ea8d5bada8096d32f23bcfb5a6dc
This is necessary for correct operation on 32bit platforms that use 64bit
time_t (e.g. OpenBSD >= 5.5, Linux x32 ABI).
Unfortunately, it is unknown if or when a new startup-notification release
containing this patch will be made. Until this situation clears up, downstream
distributions might or might not choose to apply the above patch to
startup-notification.
If startup-notification is patched, or a new release containing the patch is
made, then libwnck needs the attached patch to avoid corruption of stack
variables on 32bit platforms if startup-notifications are enabled.
Diffstat (limited to 'libwnck/tasklist.c')
-rw-r--r-- | libwnck/tasklist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c index 4a68dde..7c80b17 100644 --- a/libwnck/tasklist.c +++ b/libwnck/tasklist.c @@ -4178,7 +4178,8 @@ sequence_timeout_callback (void *user_data) WnckTasklist *tasklist = user_data; GList *tmp; GTimeVal now; - long tv_sec, tv_usec; + time_t tv_sec; + suseconds_t tv_usec; double elapsed; g_get_current_time (&now); |