[libwnck/sn-32bit-fix] TaskList: use new Startup Notification API



commit 06a7ec9ac56b350bcce35b138c20bad1a3ae9c6a
Author: Stefan Sperling <stsp stsp name>
Date:   Tue Feb 18 14:14:18 2014 +0100

    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.

 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]