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 93590 - metacity should make up a saved size for automaximized windows
metacity should make up a saved size for automaximized windows
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: METACITY2.8.x
Assigned To: Metacity maintainers list
Metacity maintainers list
: 123800 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-09-18 17:45 UTC by Michal Palczewski
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
final patch (1.86 KB, patch)
2004-01-10 18:16 UTC, Rob Adams
none Details | Review

Description Michal Palczewski 2002-09-18 17:45:30 UTC
Description of Problem:

Metacity should remember to sizes when remembering
application window sizes.  One for a maximized
window and one for a non maximized window.  So
that if I start an application that at the last
start was maximized it should start maximized and
then when unmaximized it should return to a
resonable size instead of just becoming resizable
and partly of screen.

Steps to reproduce the problem:
1. Start gnome-system-monitor
2. Maximize it
3. Quit gnome-system-monitor
4. Start gnome-system-monitor
5. Un-maximize it.
 
Actual Results:

gnome-system monitor remains huge, but becomes a
pain to resize because it's corners are off screen.

Expected Results:

gnome-system-monitor should go back to a resonable
un-maxmized size, preferably the size it was
before the initial maxmization.

How often does this happen? 

everytime.

Additional Information:

Some apps start at the same size no matter what. 
 Others such as nautilus and galeon exibit this
problem.
Comment 1 Havoc Pennington 2002-09-18 18:57:09 UTC
metacity doesn't remember any window sizes - what you're seeing here
is totally a function of the applications in question, and needs to be
handled by the apps.

(My personal opinion is that we need a protocol for metacity to handle
it instead, but I have not been able to convince wm-spec-list@gnome.org 
of the need for this. There's an open metacity bug still to work on
changing the WM spec I think.)
Comment 2 Julien Olivier 2003-02-27 14:25:44 UTC
Look at this bug in redhat's bugzilla:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=82550

I attached a patch that works that around by setting up an acceptable
unmaximized size for apps that don't work correctly. That's a hack but
that makes your life easier when you use Mozilla or OOO for example.

The patch is here:

https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=90034&action=view
Comment 3 David Kennedy 2003-03-24 21:03:07 UTC
Adding patch keyword, adjusting severity.
Comment 4 Rob Adams 2003-10-12 16:32:59 UTC
this patch seems like a pretty good idea to me; one caveat though:  I
suppose ideally we would ensure that the saved_rect we give it isn't
smaller than the min_size hint, but the constraints code would enforce
that anyway so it's not really a big deal.
Comment 5 Havoc Pennington 2003-12-07 20:49:40 UTC
We may want to base the default saved size on the work area size
somehow, or it could still be larger than the screen.

In any case, seems sane. I wouldn't worry about the minimum size
issue, constraints will fix it.

Comment 6 Rob Adams 2004-01-10 18:13:42 UTC
the patch was out of date, so I had to reimplement it.  Attached is
the final patch committed to HEAD.
Comment 7 Rob Adams 2004-01-10 18:16:46 UTC
Created attachment 23204 [details] [review]
final patch
Comment 8 Rob Adams 2004-01-10 21:58:11 UTC
*** Bug 123800 has been marked as a duplicate of this bug. ***
Comment 9 Julien Olivier 2004-01-28 16:27:16 UTC
I hadn't seen it was fixed. Thanks Rob !