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 122670 - Jerky/random resizing of windows via keyboard
Jerky/random resizing of windows via keyboard
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
2.12.x
Other other
: High normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
constraints_experiments:targeted
: 106994 114112 (view as bug list)
Depends on:
Blocks: 155458
 
 
Reported: 2003-09-18 21:36 UTC by Andy Buckley
Modified: 2005-11-19 17:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A patch I was using to try to debug this problem. (9.00 KB, patch)
2004-10-15 01:50 UTC, Elijah Newren
rejected Details | Review
debug spew for a single keypress event while keyboard-resizing (12.76 KB, text/plain)
2004-10-18 12:26 UTC, Bert Vermeulen
  Details

Description Andy Buckley 2003-09-18 21:32:44 UTC
Package: metacity
Severity: minor
Version: 2.4.55
Synopsis: Jerky/random resizing of windows via keyboard
Bugzilla-Product: metacity
Bugzilla-Component: general

Description:
Description of Problem:
When using the keyboard interface to resize windows (Alt-F8 and then
cursor keys), if the key is held down (to
do a major resizing) then the enlargement of the frame becomes jerky and
even reverses direction.

Steps to reproduce the problem:
1. Press Alt-F8
2. Hold down (e.g. right arrow key)
3. Watch

Actual Results:
Frame generally expands to the right, but after a few seconds it "gets
confused" and jerky, effectively 
stalling or even going in the wrong direction.

Expected Results:
Frame should expand uniformly to the right.

How often does this happen?
Every time.

Additional Information:
It would also be nicer if the default step size for this and for the
Alt-F7 window-move bindings were 2 or 3 times larger.




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-09-18 17:32 -------

The original reporter (buckley@hep.phy.cam.ac.uk) of this bug does not have an account here.
Reassigning to the exporter, unknown@bugzilla.gnome.org.
Reassigning to the default owner of the component, metacity-maint@bugzilla.gnome.org.

Comment 1 Havoc Pennington 2003-09-18 23:37:20 UTC
Is this only with terminals and other windows with a "grid"? 
If so may narrow it down.

Suspect that close perusal of verbose debug spew would show the problem.
Comment 2 Havoc Pennington 2003-09-25 04:09:57 UTC
*** Bug 114112 has been marked as a duplicate of this bug. ***
Comment 3 Elijah Newren 2004-10-14 20:17:17 UTC
*** Bug 106994 has been marked as a duplicate of this bug. ***
Comment 4 Elijah Newren 2004-10-14 20:18:19 UTC
No, this isn't just with terminals and grid apps.  It happens with other
windows.  Currently, one has to hold down the arrow key for about a second to
see this happen.  I've done a little bit of investigating and have some logs
hanging around somewhere....
Comment 5 Rob Adams 2004-10-14 20:43:56 UTC
Maybe we're getting to many requests and queued resize isn't being handled in
time.  Perhaps we need code to compress the resize events.  
Comment 6 Elijah Newren 2004-10-15 01:50:39 UTC
Created attachment 32623 [details] [review]
A patch I was using to try to debug this problem.

Here's a patch that I was using to try to debug the problem about a week ago. 
It appeared that I was getting somewhat close to the problem--I would generate
logs with this patch when trying to make a window larger, and the first
occurence of the window shrinking (i.e. "jumping back") came immediately after
the ~I think this is when things are going to get hosed~ messages added by the
patch.
Comment 7 Elijah Newren 2004-10-15 01:51:53 UTC
Comment on attachment 32623 [details] [review]
A patch I was using to try to debug this problem.

This was just for debugging purposes, so I'm marking this patch as such.  I
haven't looked at this for a while, but I just thought I'd throw the patch up
here in case anyone else wants to look at it before I get around to it again.
Comment 8 Bert Vermeulen 2004-10-18 12:26:12 UTC
Created attachment 32726 [details]
debug spew for a single keypress event while keyboard-resizing

This shows it quite nicely. In particular, look at these lines grepped out of
the attached spew:

GEOMETRY: Move/resize 0x20000e (xterm) to 364,553 532x316 (user move/resize)
from 364,553 526x316
GEOMETRY: Move/resize 0x20000e (xterm) to 364,553 526x316 (user move/resize)
from 364,553 532x316
GEOMETRY: Move/resize 0x20000e (xterm) to 364,553 532x316 (user move/resize)
from 364,553 526x316
GEOMETRY: Move/resize 0x20000e (xterm) to 364,553 532x316 (user move/resize)
from 364,553 532x316
GEOMETRY: Move/resize 0x20000e (xterm) to 364,553 532x316 (user move/resize)
from 364,553 532x316

Clearly the jerky effect is caused by the window going back and forth --
effectively doing the resize operation twice. I'm really not familiar enough
with metacity yet to find the cause, but I hope this helps.
Comment 9 Elijah Newren 2005-10-07 16:06:20 UTC
Removing the old milestone, bumping up the priority, and noting that it still
happens...
Comment 10 Elijah Newren 2005-11-19 17:15:35 UTC
[Cue Wizard of Oz music]

Ding! Dong!  The bug is dead!
The wicked bug,
The wicked bug,
Ding! Dong!  The wicked bug is dead...