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

« back to all changes in this revision

Viewing changes to src/misc.h

  • 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: misc.h 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
        oroborus - (c) 2001 Ken Lynch
18
 
        xfwm4    - (c) 2002-2006 Olivier Fourdan
 
20
        xfwm4    - (c) 2002-2009 Olivier Fourdan
19
21
 
20
22
 */
21
23
 
 
24
#ifndef INC_MISC_H
 
25
#define INC_MISC_H
 
26
 
22
27
#ifdef HAVE_CONFIG_H
23
 
#  include "config.h"
 
28
#include "config.h"
24
29
#endif
25
30
 
26
31
#include <X11/X.h>
28
33
#include <glib.h>
29
34
#include "screen.h"
30
35
 
31
 
#ifndef INC_MISC_H
32
 
#define INC_MISC_H
33
 
 
34
36
/*
35
37
   Just for completion, being a bit pedantic, X seems to be missing
36
38
   those so far, so create them for now.
37
39
 */
 
40
 
38
41
#ifndef Button6
39
42
#define Button6 6
40
43
#endif
43
46
#define Button7 7
44
47
#endif
45
48
 
46
 
unsigned int             getMouseXY                             (ScreenInfo *, 
47
 
                                                                 Window, 
48
 
                                                                 int *, 
 
49
unsigned int             getMouseXY                             (ScreenInfo *,
 
50
                                                                 Window,
 
51
                                                                 int *,
49
52
                                                                 int *);
50
 
Window                   getMouseWindow                         (ScreenInfo *, 
51
 
                                                                 Window);
52
 
GC                       createGC                               (ScreenInfo *, 
53
 
                                                                 char *, 
54
 
                                                                 int, 
55
 
                                                                 XFontStruct *, 
56
 
                                                                 int, 
57
 
                                                                 gboolean);
58
 
void                     sendClientMessage                      (ScreenInfo *, 
59
 
                                                                 Window, 
60
 
                                                                 int, 
61
 
                                                                 guint32);
62
 
void                     sendRootMessage                        (ScreenInfo *, 
63
 
                                                                 int, 
64
 
                                                                 long, 
65
 
                                                                 guint32);
66
 
gboolean                 checkWindowOnRoot                      (ScreenInfo *, 
67
 
                                                                 Window);
68
 
void                     placeSidewalks                         (ScreenInfo *, 
69
 
                                                                 gboolean);
70
 
gint                     find_monitor_at_point                  (GdkScreen *, 
71
 
                                                                 gint, 
72
 
                                                                 gint);
 
53
Window                   getMouseWindow                         (ScreenInfo *,
 
54
                                                                 Window);
 
55
GC                       createGC                               (ScreenInfo *,
 
56
                                                                 char *,
 
57
                                                                 int,
 
58
                                                                 XFontStruct *,
 
59
                                                                 int,
 
60
                                                                 gboolean);
 
61
void                     sendClientMessage                      (ScreenInfo *,
 
62
                                                                 Window,
 
63
                                                                 int,
 
64
                                                                 guint32);
 
65
void                     sendRootMessage                        (ScreenInfo *,
 
66
                                                                 int,
 
67
                                                                 long,
 
68
                                                                 guint32);
 
69
gboolean                 checkWindowOnRoot                      (ScreenInfo *,
 
70
                                                                 Window);
 
71
void                     placeSidewalks                         (ScreenInfo *,
 
72
                                                                 gboolean);
 
73
gchar*                   get_atom_name                          (DisplayInfo *,
 
74
                                                                 Atom);
73
75
 
74
76
#endif /* INC_MISC_H */