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 147384 - looks ugly when resolution is changed.
looks ugly when resolution is changed.
Status: RESOLVED OBSOLETE
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks: 107063 155460
 
 
Reported: 2004-07-12 05:37 UTC by Sagar Rastogi
Modified: 2020-11-07 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (4.03 KB, patch)
2004-07-12 05:41 UTC, Sagar Rastogi
needs-work Details | Review

Description Sagar Rastogi 2004-07-12 05:37:03 UTC
If the session is saved with higher resolution and restored with lower
resolution, some windows get placed outside the screen.
Comment 1 Sagar Rastogi 2004-07-12 05:41:55 UTC
Created attachment 29455 [details] [review]
proposed patch

Stores the resolution info along with other session information. This info is
used while 'placing' the windows during session restore.
Comment 2 Havoc Pennington 2004-07-12 13:59:44 UTC
Do you think scaling the windows is really right or should we just push the
windows onto the screen and force them down to max size == screen size?
Comment 3 Sagar Rastogi 2004-07-14 12:50:14 UTC
IMHO, it would be better to scale the windows so that they keep the original
positions instead of cropping them. For example, if a window is placed near the
side, it will get trimmed to a narrow strip which would be ugly. The user would
expect the window to have the same height/width proportion when the resolution
is changed.
Comment 4 Rob Adams 2005-05-26 20:04:01 UTC
either policy should be fine here.  This is kind of a corner case anyway, and
window constraints will still be honored.  So we should probably go ahead and
commit this (assuming it still applies).
Comment 5 Havoc Pennington 2005-05-27 13:51:46 UTC
I think constraining would be a lot better than scaling...
Comment 6 Michael Meeks 2005-05-27 14:26:15 UTC
surely at least, scaling the position makes sense ?
Comment 7 Elijah Newren 2005-05-27 15:28:26 UTC
Michael: Isn't that what constraints (must be moved so that it's onscreen; if
too big it should be shrunk unless it's below the windows minimum size hint)
effectively do?
Comment 8 Michael Meeks 2005-05-27 15:40:19 UTC
I guess; of course, going from small->large would also be helped by a
proportional  position.

consider: "I always keep my GAIM on the RHS of the screen & my xchat on the
left" or "I like to have the FooWindow at the bottom" type scenarios.

If you store a proportional position - then with the same (administrator
configured?) setting you can achieve that effect on ~all your desktops - and
better, as you log-out it's likely to retain that proportional position.
Otherwise at least on some transition edge [ unless it's positioned to the
top/left or whatever ] you get movement & sub-optimal positioning.

Of course - storing a resolution sucks too ;-) an x_prop="0.5" or somesuch would
be better.

Just my ignorant 2cents :-)
Comment 9 Havoc Pennington 2005-06-01 14:50:17 UTC
Avoiding offscreen windows would make sense to me. Basically what makes sense to
me is that if the window is entirely onscreen with the new resolution, leave it
alone, otherwise push it onscreen via some combination of move/resize. By
"onscreen" I mean the whole window, not just the titlebar.
Comment 10 Elijah Newren 2006-05-03 22:48:46 UTC
The make-sure-window-is-onscreen aspect of this bug should be fixed by the constraints rewrite in 2.13.x.  I'll leave open for the position-scaling issue mentioned by Michael but drop the severity to enhancement.
Comment 11 Elijah Newren 2007-04-09 18:20:53 UTC
Well, while we're stuck thinking about whether we want scaling, a couple comments on the patch:

There are spacing issues: indentation is not always consistent with the rest of the code and often uses tabs when it shouldn't.

Patches should be created with the -p flag (as well as the -u flag).

I don't like adding an additional meta_window_move_resize_internal() call.  Rather the code should make sure that if both info->geometry_set and info->resolution_set then there's still only one call.

The hardcoding of NorthWestGravity for the call to meta_window_move_resize_internal() is not good; should use the window's gravity instead.  Also, using flags=META_DO_GRAVITY_ADJUST is not right; it's a move and resize operation as well (though perhaps this patch was before the constraints rewrite which involved changes to meta_window_move_resize_internal arguments?)
Comment 12 André Klapper 2020-11-07 12:36:01 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
old feature requests in Bugzilla which have not seen updates for many years.

If you still use metacity and if you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/metacity/-/issues/

Thank you for reporting this issue and we are sorry it could not be implemented.