~ubuntu-branches/ubuntu/precise/xfwm4/precise-updates

« back to all changes in this revision

Viewing changes to src/startup_notification.c

  • Committer: Bazaar Package Importer
  • Author(s): Jérôme Guelfucci, Jérôme Guelfucci, Lionel Le Folgoc
  • Date: 2009-01-30 18:28:59 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20090130182859-1tci3n1f1hhppvc2
Tags: 4.5.99.1-0ubuntu1
[ Jérôme Guelfucci ]
* Merge with Debian Xfce UNRELEASED, remaining Ubuntu changes:
  - debian/xfwm4.1: update bug reporting address (LP instead of Debian BTS).

[ Lionel Le Folgoc ]
* debian/control: use our Vcs-* fields.
* Bugs fixed by this new release:
  - "User interface of focused application is covered by another application's
    new window in Xfce" (LP: #250101)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $Id: startup_notification.c 28362 2008-10-22 19:58:39Z olivier $
 
1
/*      $Id$
2
2
 
3
3
        This program is free software; you can redistribute it and/or modify
4
4
        it under the terms of the GNU General Public License as published by
12
12
 
13
13
        You should have received a copy of the GNU General Public License
14
14
        along with this program; if not, write to the Free Software
15
 
        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
15
        Foundation, Inc., Inc., 51 Franklin Street, Fifth Floor, Boston,
 
16
        MA 02110-1301, USA.
 
17
 
16
18
 
17
19
        Metacity - (c) 2003 Havoc Pennington
18
 
        xfwm4    - (c) 2002-2006 Olivier Fourdan
 
20
        xfwm4    - (c) 2002-2009 Olivier Fourdan
19
21
 
20
22
 */
21
23
 
22
24
#ifdef HAVE_CONFIG_H
23
 
#include <config.h>
 
25
#include "config.h"
24
26
#endif
25
27
 
26
28
#ifdef HAVE_LIBSTARTUP_NOTIFICATION
285
287
        /* Set initial time */
286
288
        timestamp = sn_startup_sequence_get_timestamp (sequence);
287
289
        TRACE ("Given startup time: %u", (unsigned int) timestamp);
288
 
        if ((c->user_time == 0) || TIMESTAMP_IS_BEFORE(c->user_time, timestamp))
 
290
        if ((c->user_time == (guint32) 0) || TIMESTAMP_IS_BEFORE(c->user_time, timestamp))
289
291
        {
290
292
            c->user_time = timestamp;
291
 
            myDisplaySetLastUserTime (screen_info->display_info, c->user_time);
 
293
            if (c->user_time != (guint32) 0)
 
294
            {
 
295
                myDisplayUpdateLastUserTime (screen_info->display_info, c->user_time);
 
296
            }
292
297
        }
293
298
        FLAG_SET (c->flags, CLIENT_FLAG_HAS_STARTUP_TIME);
294
299