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 90383 - When keyboard resizing, weird max size gets imposed
When keyboard resizing, weird max size gets imposed
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: GNOME2.x
Assigned To: Metacity maintainers list
Metacity maintainers list
: 90581 (view as bug list)
Depends on: 107010
Blocks:
 
 
Reported: 2002-08-10 04:49 UTC by Havoc Pennington
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Havoc Pennington 2002-08-10 04:49:55 UTC
If I do keyboard resize and move the bottom edge of an xterm way 
down, then way up, then try to go down, some kind of limit on 
downward movement seems to get imposed and the window can't be 
made larger.
Comment 1 blackc 2002-08-10 20:12:32 UTC
This is caused by the so called "smart snap" resizing.
In keybindings.c process_keyboard_resize_grab() we are attempting to
snap to an edge since the resize to the edge is smaller than the
standard resize increment. i.e.:

if (smart_snap || ((edge < (y+height)) &&
                             ABS (edge - (y+height)) < height_inc))
            height = edge - y;


However later in meta_window_move_resize() we end up calling
constrain_size() which ends up making the actual window height less
than the desired edge.

The next time process_keyboard_resize_grab() we try to snap to the
edge again and the cycle repeats.
Comment 2 Havoc Pennington 2002-08-10 20:30:07 UTC
This code is stuff that should get unhosed a bit when I finish the
constraints.c hacking
Comment 3 Isaiah Weiner 2002-08-12 20:57:42 UTC
*** Bug 90581 has been marked as a duplicate of this bug. ***
Comment 4 Heath Harrelson 2002-10-30 15:45:31 UTC
Batch adding GNOME2 keyword to Metacity bugs.  Sorry for the spam.
Comment 5 Rob Adams 2003-03-16 00:17:16 UTC
this appears to be fixed with the constraints.c update.