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 94815 - Window moves when resizing
Window moves when resizing
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
unspecified
Other other
: High minor
: GNOME2.x
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on: 107010
Blocks:
 
 
Reported: 2002-10-04 01:15 UTC by John McCutchan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
this patch fixes this problem by making the onscreen pixel constraint scale down with window size (1.12 KB, patch)
2003-03-12 05:30 UTC, Rob Adams
none Details | Review
updated patch; old one could allow undecorated 1x1 windows completely off screen. (1.12 KB, patch)
2003-03-12 05:40 UTC, Rob Adams
none Details | Review

Description John McCutchan 2002-10-04 01:14:58 UTC
Package: metacity
Severity: normal
Version: 2.4.1
Synopsis: Window moves when resizing
Bugzilla-Product: metacity
Bugzilla-Component: general

Description:
Description of Problem:
If I open up galeon and resize it so that the right side is flush
against
the ride side of the monitor. And then I drag the left side to resize
and I resize so that its shrunken to zero width and then I make it big
again the right side of the window is moved away from the right side
of the monitor.

Steps to reproduce the problem:
1. Open up galeon (or a window with no minimum width)
2. Move it so the right side of the window is against the ride side of
the
    monitor.
3. Drag the left side of the window until the window has zero width and
then
    drag it back. 

Actual Results:
The window has moved away from the right side of the monitor.

Expected Results:
Window shrinks and then grows.

How often does this happen?
Everytime.

Additional Information:




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-10-03 21:14 -------

Reassigning to the default owner of the component, hp@redhat.com.

Comment 1 Havoc Pennington 2002-10-04 02:03:12 UTC
The new constraints rewrite in constraints.c is intended to address 
this issue among others.
Comment 2 Heath Harrelson 2002-10-30 15:45:49 UTC
Batch adding GNOME2 keyword to Metacity bugs.  Sorry for the spam.
Comment 3 Rob Adams 2003-03-12 04:27:59 UTC
This bug still exists even with the constraints rewrite.  It is highly
funky.
Comment 4 Rob Adams 2003-03-12 05:30:25 UTC
Created attachment 14959 [details] [review]
this patch fixes this problem by making the onscreen pixel constraint scale down with window size
Comment 5 Rob Adams 2003-03-12 05:40:13 UTC
Created attachment 14960 [details] [review]
updated patch; old one could allow undecorated 1x1 windows completely off screen.
Comment 6 Rob Adams 2003-03-13 05:45:20 UTC
marking PATCH/high
Comment 7 Rob Adams 2003-03-15 00:44:10 UTC
Does this look OK to you Havoc?  To me, this seems like the Right Fix
(TM).  Basically, if a window is smaller than
TITLEBAR_LENGTH_ONSCREEN, we shouldn't force it to be onscreen by a
width larger than the window size.  That's what was causing the window
to move when resizing it -- the onscreen constraint interacting with
the user resize request.

-Rob
Comment 8 Havoc Pennington 2003-03-15 01:24:38 UTC
This patch does look good, just add space in "MIN(" ;-)
Please commit, thanks.
Comment 9 Rob Adams 2003-03-16 00:15:16 UTC
committed.  And the MIN's converted to your evil bastardized
convention.    You're such a taskmaster :-)