Window Frame Size
- From: Alan LaViolette <alan globalfoo net>
- To: gnome-list gnome org
- Subject: Window Frame Size
- Date: Tue, 22 Jan 2002 10:06:12 -0500
I am working on positioning of a window that I want to control exactly
to location it show up on the screen. To do this I need the frame size,
and I can not get this. I have looked at the function
gtk_window_get_frame_size in the current gtk+ CVS. I used this code and
it still did not return the correct frame size. All of these functions
return the same size.
gdk_window_root_origin
gdk_window_origin
gdk_window_position
XGetWindowAttributes
XGetGeometry
When I use xwininfo it it shows a relative upper-left and upper-right.
I could use these maybe but I looked at the source for xwininfo and it
uses XGetWindowAttributes the exact same way I do, and still nothing. I
have noticed that 6-7 times that I do the display it will display the
correct info I need. then it will change and not be correct the next
time I show the window.
do I need to do something after a gtk_widget_show to get the correct
size of the window.
How do I get frame size. Is this a question I should direct to the
sawfish or X mailing lists.
-Alan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]