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

« back to all changes in this revision

Viewing changes to src/focus.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-11-10 07:40:26 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20081110074026-xo3f144nja3wl7kz
Tags: 4.4.3-0ubuntu1
* Merge with Debian Xfce UNRELEASED, remaining Ubuntu changes
  - debian/xfwm4.1: update bug reporting address (LP instead of Debian BTS).
  - debian/rules: keep the .desktop installed, but add "NoDisplay=true" to hide
    them by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $Id: focus.c 24170 2006-12-22 20:55:02Z olivier $
 
1
/*      $Id: focus.c 28362 2008-10-22 19:58:39Z olivier $
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
100
100
}
101
101
 
102
102
void
103
 
clientFocusTop (ScreenInfo *screen_info, int layer, Time timestamp)
 
103
clientFocusTop (ScreenInfo *screen_info, int layer, guint32 timestamp)
104
104
{
105
105
    ClientPair top_client;
106
106
    DisplayInfo *display_info;
145
145
    }
146
146
    else if ((client_focus) && (prevent_focus_stealing))
147
147
    {
148
 
        if (FLAG_TEST (c->flags, CLIENT_FLAG_HAS_STARTUP_TIME) && (c->user_time == (Time) CurrentTime))
 
148
        if (FLAG_TEST (c->flags, CLIENT_FLAG_HAS_STARTUP_TIME) && (c->user_time == CurrentTime))
149
149
        {
150
150
            TRACE ("Given startup time is 0, not focusing");
151
151
            give_focus = FALSE;
484
484
}
485
485
 
486
486
void
487
 
clientSetFocus (ScreenInfo *screen_info, Client * c, Time timestamp, unsigned short flags)
 
487
clientSetFocus (ScreenInfo *screen_info, Client * c, guint32 timestamp, unsigned short flags)
488
488
{
489
489
    DisplayInfo *display_info;
490
490
    Client *c2;