Re: [gtk-list] Window manager stealing coordinates ?
- From: Owen Taylor <owt1 cornell edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Window manager stealing coordinates ?
- Date: Sat, 15 Nov 1997 08:11:51 -0500
> Hi !
>
> How do I get the (x,y) coordinates of my main window ?
> gdk_window_get_geometry() returns the correct values for
> width, height and depth, but always the coordinates
> (0,0). :-(
>
> If I start pure X (no window manager), the correct values
> are returned.
>
> Is there a solution (working for every window manager) ?
try:
gint gdk_window_get_origin (GdkWindow *window,
gint *x,
gint *y);
(I haven't tried it, but it looks like it should do what
you want from the code)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]