GNOME Bugzilla – Bug 344379
wnck_window_get_geometry() doesn't return relevant values
Last modified: 2007-06-09 22:37:12 UTC
Please describe the problem: The values returned by wnck_window_get_geometry() don't include the window decorations. It seems only the "contained window" is considered. Steps to reproduce: 1. Compile the code in the attachment. 2. Place a terminal window at the top of the screen. 3. Run the compiled program Actual results: An X location of 19 is reported. (My window title bar is 19 pixels.) Expected results: An X location of 0. Does this happen every time? Yes. Other information: I'm attaching the program code ASAP.
Created attachment 67033 [details] Code that shows the problem
Just to clarify a little more what I expect :-) Taking the values returned from wnck_window_get_geometry() and passing them to wnck_window_set_geometry() (as implemented in bug 342899) should have no effect. This is not the case at the moment. Testing this is requires a WM that supports _NET_MOVERESIZE_WINDOW, which Metacity doesn't at the moment. I've used Openbox for my experiments.
FWIW, this is also a problem in the pager. If you have a somewhat bigger pager (not the 30x20 workspaces in the default install), you can notice that e.g. maximized windows don't appear maximized in the pager, they're 1 or 2 pixels off.
Patch in bug 351055 should fix this. *** This bug has been marked as a duplicate of 351055 ***