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 529925 - window placement regression from 2.18 (cascading placement is disabled)
window placement regression from 2.18 (cascading placement is disabled)
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
trunk
Other All
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2008-04-25 16:12 UTC by Erwann Chenede
Modified: 2008-05-15 20:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
proposed patch (1.35 KB, patch)
2008-04-25 16:13 UTC, Erwann Chenede
committed Details | Review

Description Erwann Chenede 2008-04-25 16:12:04 UTC
Test case :
In an empty workspace open new gnome-terminal windows, once the screen 
is filled with gnome-terminal keep on starting new one the additional 
gnome-terminals started appear at the top left on the screen.

Expected result :
The overlapping windows should be cascaded (shifted to the right and bottom 
by the size of the window frame)

Result : 
The windows are overlapping perfectly making it hard to see directly the 
new windows are present on the screen.

This is a regression compared to metacity 2.18

Evaluation :
The cascading algorithm as been disabled in metacity 2.22 (and 2.20).
A solution is to default to the cascading algorithm in meta_window_place (place.c)
if the no placement algorithm as been applied before.

See proposed patch attached.

I is ok to commit ?
Comment 1 Erwann Chenede 2008-04-25 16:13:50 UTC
Created attachment 109915 [details] [review]
proposed patch
Comment 2 Thomas Thurman 2008-04-25 17:10:21 UTC
Thanks for the patch!  I'll review it tonight or tomorrow, unless someone else gets there first;  sorry, I'm at work at present.
Comment 3 Thomas Thurman 2008-04-26 04:38:14 UTC
1) It does what it's supposed to and fixes the bug.  Wonderful.  Thank you.

2) The error was introduced in r3247 by me attempting to fix a xinerama bug.
http://svn.gnome.org/viewvc/metacity?rev=3247&view=rev
(see call to find_next_cascade)

3) The comment in your patch is slightly broken English: prefer
/* If no placement has been done, revert to cascade to avoid
 * fully overlapping windows (e.g. starting multiple terminals).
 */
Other than that, go right ahead and check it in.
Comment 4 Thomas Thurman 2008-04-26 04:55:57 UTC
(PS: If you haven't checked in within the next 24 hours or so I'll check it in, because I want to make a special release for this.)
Comment 5 Thomas Thurman 2008-04-27 20:11:51 UTC
Checked in:

http://svn.gnome.org/viewvc/metacity?rev=3693&view=rev

Release imminent.