]> Pileus Git - ~andy/gtk/blob - gdk/gdkglobals.c
new function to get the *real* geometry position of a window, taken
[~andy/gtk] / gdk / gdkglobals.c
1 /* GDK - The GIMP Drawing Kit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 #include <stdio.h>
20 #include <X11/Xlib.h>
21 #include "gdktypes.h"
22 #include "gdkprivate.h"
23 #include "../config.h"
24
25 guint             gdk_debug_flags = 0;
26 gint              gdk_use_xshm = TRUE;
27 gchar            *gdk_display_name = NULL;
28 Display          *gdk_display = NULL;
29 gint              gdk_screen;
30 Window            gdk_root_window;
31 Window            gdk_leader_window;
32 GdkWindowPrivate  gdk_root_parent = { { NULL, }, NULL, };
33 Atom              gdk_wm_delete_window;
34 Atom              gdk_wm_take_focus;
35 Atom              gdk_wm_protocols;
36 Atom              gdk_wm_window_protocols[2];
37 Atom              gdk_selection_property;
38 GdkDndCursorInfo  gdk_dnd_cursorinfo = {None, None, NULL, NULL,
39                                         {0,0}, {0,0}, NULL};
40 GdkDndGlobals     gdk_dnd = {None,None,None,
41                              None,None,None,
42                              None,
43                              &gdk_dnd_cursorinfo,
44                              NULL,
45                              0,
46                              FALSE, FALSE, FALSE,
47                              None,
48                              {0,0},
49                              {0,0}, {0,0},
50                              {0,0,0,0}, NULL, None, 0};
51 gchar            *gdk_progclass = NULL;
52 gint              gdk_error_code;
53 gint              gdk_error_warnings = TRUE;
54 gint              gdk_null_window_warnings = TRUE;
55 GList            *gdk_default_filters = NULL;
56
57 gboolean          gdk_using_threads = FALSE;
58
59 /* Used to signal the mainloop thread from its select() */
60 #ifdef USE_PTHREADS
61 gint              gdk_threads_pipe[2];
62 gboolean          gdk_select_waiting = FALSE;
63 #endif
64
65