GNOME Bugzilla – Bug 724049
Impossible to automatically place windows directly under the top-panel
Last modified: 2014-03-22 11:15:06 UTC
I start 4 xterms from a script at login like this: xterm -geometry +278+19& xterm -geometry +278+512& xterm -geometry +1100+19& xterm -geometry +1100+512& This used to work fine, but whatever value I try for the +19 now it does not work, it seems as if the top of the windows decoration (top of the titlebar) always is placed exactly one title-bar height below the bottom of the panel instead of directly against the panel. Starting at +29 or some such it does become placed lower then before, but any value less then +29 is treated the same.
Created attachment 271044 [details] [review] Fix positioning error for manually positioned windows The "original coordinates" passed into meta_window_place() were the coordinates of the client rectangle not the frame rectangle. When meta_window_place() didn't place because the window was manually positioned (e.g., 'xterm -geometry +x+y') that resulted in a window being offset by the frame dimensions.
This regressed with: commit 4ee9f3563bb8315af71bebe31d06bd08b121d827 Author: Owen W. Taylor <otaylor@fishsoup.net> Date: Fri Nov 15 16:11:20 2013 -0500 Use utility functions to convert between frame and client rectangles [...] Switch the placement code to place the frame rectangle rather than the client window - this simplifies things considerably.
Review of attachment 271044 [details] [review]: Looks good and works in testing.
Attachment 271044 [details] pushed as 4c2e39b - Fix positioning error for manually positioned windows
*** Bug 726869 has been marked as a duplicate of this bug. ***