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 113798 - Support aspect ratio hints
Support aspect ratio hints
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
2.5.x
Other Linux
: High major
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
: 112324 (view as bug list)
Depends on:
Blocks: 118195
 
 
Reported: 2003-05-27 04:16 UTC by Rob Adams
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add aspect ratio playing support to metacity-window-demo and un-#if 0 aspect ratio code (6.23 KB, patch)
2003-06-01 08:21 UTC, Rob Adams
none Details | Review
support aspect ratio (8.28 KB, patch)
2003-07-27 16:49 UTC, Rob Adams
none Details | Review

Description Rob Adams 2003-05-27 04:16:01 UTC
The code to support aspect ratio hints in constraints.c is currently #if
0'd.  We should figure out why and maybe even fix whatever's wrong with the
code.
Comment 1 Havoc Pennington 2003-05-31 03:46:21 UTC
Need to fix this before stable release.

I'm not sure it's disabled for a reason, I may have just been 
wanting to test the other code without this code interfering.
So a first step may be to just try enabling it.
Comment 2 Rob Adams 2003-06-01 08:20:35 UTC
played around with this a bit.  The aspect ratio code is completely
hosed, especially the center resizing.  Sometimes the whole window
will move around with screen in screwy ways when center resizing. 
Sometimes it won't let you center resize at all.  Corner resizing
mostly works but it's possible to get it to do weird things also.

I've retrofitted metacity-window-demo to add an aspect ratio
hint-o-matic.  I'm attaching a patch.  If you press the new open
button, it'll set the text widget to a 16:9 aspect ratio.  Then you
can play around with it easily if you want to.  But for now I think
I'm going to bed :-)
Comment 3 Rob Adams 2003-06-01 08:21:18 UTC
Created attachment 17038 [details] [review]
add aspect ratio playing support to metacity-window-demo and un-#if 0 aspect ratio code
Comment 4 Elijah Newren 2003-06-14 22:33:02 UTC
Adding PATCH keyword...
Comment 5 Rob Adams 2003-06-15 01:08:24 UTC
It's not really a patch.  It's a pretend patch.
Comment 6 Rob Adams 2003-06-25 05:36:54 UTC
*** Bug 112324 has been marked as a duplicate of this bug. ***
Comment 7 Rob Adams 2003-07-27 16:49:17 UTC
Created attachment 18650 [details] [review]
support aspect ratio
Comment 8 Rob Adams 2003-07-27 16:52:50 UTC
Attached patch works well for mouse resizing -- I essentially just
disabled center resizing for aspect-constrained windows because it was
causing undesirable side effects, and fixing them would have been more
effort than I was willing to put into fixing this very rarely used
feature.

Comment 9 Havoc Pennington 2003-07-28 00:53:21 UTC
Can you explain the patch more? Are you saying just disabling center 
fixes the other cases? It looks like there's code there related to
center though?
Comment 10 Rob Adams 2003-07-28 00:59:59 UTC
The code related to center just prevents you from resizing the window
out of aspect ratio at all, whereas you can resize the window at a
corner  (that is, you can still center resize, but not on aspect-ratio
constrained windows).

The problem with center resizing is that weird multi-dimensional side
effects would pop up causing the window to move around in very odd
ways.  I immediately couldn't come up with a good way of fixing that,
so I just disabled it.
Comment 11 Havoc Pennington 2003-07-28 01:01:37 UTC
OK, sounds reasonable and I'm not going to take the time to unpack the
math, so I'll just trust you. ;-)

Thanks
Comment 12 Rob Adams 2003-07-28 02:09:20 UTC
committed.  We may end up revisiting this at a later date though.