After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344379 - wnck_window_get_geometry() doesn't return relevant values
wnck_window_get_geometry() doesn't return relevant values
Status: RESOLVED DUPLICATE of bug 351055
Product: libwnck
Classification: Core
Component: general
2.14.x
Other All
: Normal normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-09 11:09 UTC by Magnus Therning
Modified: 2007-06-09 22:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Code that shows the problem (514 bytes, text/plain)
2006-06-09 11:10 UTC, Magnus Therning
Details

Description Magnus Therning 2006-06-09 11:09: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.
Comment 1 Magnus Therning 2006-06-09 11:10:42 UTC
Created attachment 67033 [details]
Code that shows the problem
Comment 2 Magnus Therning 2006-06-09 17:26:05 UTC
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.
Comment 3 Benjamin Otte (Company) 2006-06-17 08:58:24 UTC
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.
Comment 4 Vincent Untz 2007-06-09 22:37:12 UTC
Patch in bug 351055 should fix this.

*** This bug has been marked as a duplicate of 351055 ***