summaryrefslogtreecommitdiff
path: root/gdk/gdkglobals.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-09-25 23:04:32 +0000
committerTim Janik <timj@src.gnome.org>1998-09-25 23:04:32 +0000
commitc961dd184bee95fe213f770a963e13f34cc1a2de (patch)
tree3e2bb95ee86c10eeb6d68e9296dc565d11254f01 /gdk/gdkglobals.c
parent416b69a2c1b79c9f14cfd3099c88d82c2dc6d876 (diff)
downloadgtk+-c961dd184bee95fe213f770a963e13f34cc1a2de.tar.gz
new function to get the *real* geometry position of a window, taken
Sat Sep 25 23:33:55 1998 Tim Janik <timj@gtk.org> * gdk/gdkwindow.c (gdk_window_get_root_origin): new function to get the *real* geometry position of a window, taken possible window manager offsets into account. this has been succesfully tested with fvwm, fvwm-2, bowman, olwm, olvwm, twm, ctwm, mlvwm, windowmaker and enlightenment. it does fail though for amiwm which adds windows to a pseudo root window, and for icewm by a small offset because it defines the geometry position whithin its border. * gtk/testgtk.c: added "saved position" test to figure how gdk_window_get_root_origin() interacts with window managers (repopup this window to figure ;).
Diffstat (limited to 'gdk/gdkglobals.c')
-rw-r--r--gdk/gdkglobals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkglobals.c b/gdk/gdkglobals.c
index bd8d537852..d21be2f294 100644
--- a/gdk/gdkglobals.c
+++ b/gdk/gdkglobals.c
@@ -29,7 +29,7 @@ Display *gdk_display = NULL;
gint gdk_screen;
Window gdk_root_window;
Window gdk_leader_window;
-GdkWindowPrivate gdk_root_parent;
+GdkWindowPrivate gdk_root_parent = { { NULL, }, NULL, };
Atom gdk_wm_delete_window;
Atom gdk_wm_take_focus;
Atom gdk_wm_protocols;