diff options
author | Tim Janik <timj@gtk.org> | 1998-09-25 23:04:32 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-09-25 23:04:32 +0000 |
commit | c961dd184bee95fe213f770a963e13f34cc1a2de (patch) | |
tree | 3e2bb95ee86c10eeb6d68e9296dc565d11254f01 /gdk/gdk.h | |
parent | 416b69a2c1b79c9f14cfd3099c88d82c2dc6d876 (diff) | |
download | gtk+-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/gdk.h')
-rw-r--r-- | gdk/gdk.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -282,6 +282,9 @@ GdkWindowType gdk_window_get_type (GdkWindow *window); gint gdk_window_get_origin (GdkWindow *window, gint *x, gint *y); +void gdk_window_get_root_origin (GdkWindow *window, + gint *x, + gint *y); GdkWindow* gdk_window_get_pointer (GdkWindow *window, gint *x, gint *y, |