[Xfce-bugs] [Bug 1314] libxfcegui4: xfce_gtk_window_center_on_monitor doesn't always really center windows

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Jan 7 20:49:16 CET 2006


Do NOT reply to this email.  To make further comments on this bug, use
the URL below:
http://bugzilla.xfce.org/show_bug.cgi?id=1314





------- Additional Comments From bjt23 at cornell.edu  2006-01-07 19:49 UTC -------
gtk_window_get_size() returns the value of the size at the last configure event.
 Since xfce_gtk_window_center_on_monitor() is usually called before the window
is even mapped, this won't provide accurate results.  This also doesn't take
into account the size of the window decorations, so it'll be slightly off-center.

gdk_window_get_frame_extents() would seem to make the most sense, but I don't
recall how well that works before the window is mapped.

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list