From c961dd184bee95fe213f770a963e13f34cc1a2de Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Fri, 25 Sep 1998 23:04:32 +0000 Subject: new function to get the *real* geometry position of a window, taken Sat Sep 25 23:33:55 1998 Tim Janik * 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 ;). --- gdk/gdkglobals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdk/gdkglobals.c') 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; -- cgit v1.2.1