summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@stsp.name>2014-02-18 14:14:18 +0100
committerMarco Trevisan (TreviƱo) <mail@3v1n0.net>2014-09-02 16:41:27 +0200
commitb00c936aa1629cc2d3b50c8011ccaa3ccd3df7a8 (patch)
treed703c03c9e83140eb2c6c8d9c2e3394221af954d
parentc0dc096f48b57a41c19a54b1669e39e842aaf6ab (diff)
downloadlibwnck-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.
-rw-r--r--libwnck/tasklist.c3
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);