xterm resize is wonky

Bug #1878293 reported by John Crown
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Undecided
Unassigned
Groovy
Fix Released
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned
xterm (Ubuntu)
Invalid
Low
Unassigned
Groovy
Invalid
Low
Unassigned
Hirsute
Invalid
Low
Unassigned

Bug Description

[ Impact ]

When I try to resize an xterm window the same way,
this happens instead: as the mouse is moved, the upper-right corner
does move, but it doesn't track with the mouse pointer like it should.
Meanwhile, the lower-left corner also moves (it should have remained anchored in its original x-y position on the screen).

[ Test case ]

- Start Xterm
- Resize the window from its top/left corner
- It should resize normally, and not act as shown in
  https://gitlab.gnome.org/GNOME/mutter/uploads/3c19763b7748ce76b0ba2958cde7636b/Screencast_from_02-04-19_14_03_24.webm

[ Regression potential ]

Windows resizing might not work correctly

---

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

% wmctrl -m
Name: GNOME Shell
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: OFF

Terms:
window has four sides: top, bottom, left, and right
when referring to corners, "upper" means "top", and "lower" means "bottom",
so the four corners are upper-right, lower-right, lower-left, and upper-left.
wonky: works wrong, as detailed below ("cases that work wrong...")

Description:

I can resize a gnome-terminal window, everything works fine.
(Grab it, using the mouse, by the upper-right corner (click-and-hold);
the size changes as the mouse is moved, because the position
of the upper-right corner follows the mouse. (Only the upper-right corner moves.))
But when I try to resize an xterm window the same way,
this happens instead: as the mouse is moved, the upper-right corner
does move, but it doesn't track with the mouse pointer like it should.
Meanwhile, the lower-left corner also moves (it should have remained anchored in its original x-y position on the screen).

Cases that work correctly:
If the xterm window is grabbed by the lower-right corner and resized, this case works properly.
If the xterm window is grabbed by the bottom edge and resized, this case works properly.
If the xterm window is grabbed by the right edge and resized, this case works properly.

Cases that work wrong ("wonky"):
If the xterm window is grabbed by the left edge and resized, then the opposite (i.e. right) edge (incorrectly) migrates.
If the xterm window is grabbed by the top edge and resized, then the opposite (i.e. bottom) edge (incorrectly) migrates.
If the xterm window is grabbed by the upper-right corner and resized, then the window (incorrectly) migrates.
If the xterm window is grabbed by the lower-left corner and resized, then the window (incorrectly) migrates.
If the xterm window is grabbed by the upper-left corner and resized, then the window (incorrectly) migrates.

ProblemType: BugDistroRelease: Ubuntu 20.04
Package: xterm 353-1ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Uname: Linux 5.4.0-29-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 440.64 Fri Feb 21 01:17:26 UTC 2020
 GCC version:
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompositorRunning: None
CurrentDesktop: GNOME
Date: Tue May 12 13:52:47 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
GraphicsCard:
 NVIDIA Corporation GK107 [GeForce GT 740] [10de:0fc8] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: PNY GK107 [GeForce GT 740] [196e:109a]
InstallationDate: Installed on 2020-05-06 (6 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: To be filled by O.E.M. To be filled by O.E.M.
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-29-generic root=UUID=7f55a3c5-bff9-45ea-8979-583e4fbfec07 ro quiet splash vt.handoff=7SourcePackage: xterm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/23/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0705
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: M5A99X EVO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0705:bd08/23/2011:svnTobefilledbyO.E.M.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnASUSTeKComputerINC.:rnM5A99XEVO:rvrRev1.xx:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: To be filled by O.E.M.
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: To be filled by O.E.M.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.101-2
version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.4-2ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.8-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200226-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
John Crown (jqc) wrote :
Revision history for this message
John Crown (jqc) wrote :

Workaround exists, obviously:

Resize the xterm from the lower-right corner, or ...
after resizing (with "wonky" effects), move the xterm back where you want it.

Revision history for this message
Thomas Dickey (dickey-his) wrote :

fwiw, the behavior you're describing is done in the window-manager (not xterm).
Perhaps it's got some problem to be investigated.

Timo Aaltonen (tjaalton)
affects: xterm (Ubuntu) → mutter (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mutter (Ubuntu):
status: New → Confirmed
Changed in xterm (Ubuntu):
status: New → Confirmed
Changed in mutter (Ubuntu):
status: Confirmed → Triaged
Timo Aaltonen (tjaalton)
affects: xterm → mutter
Changed in mutter (Ubuntu):
importance: Undecided → Low
Changed in xterm (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Changed in xterm (Ubuntu):
status: Triaged → Invalid
Changed in mutter (Ubuntu):
status: Triaged → Fix Committed
tags: added: fixed-in-3.38.2 fixed-upstream
description: updated
Changed in mutter (Ubuntu):
status: Fix Committed → In Progress
Changed in mutter (Ubuntu Groovy):
importance: Undecided → Low
status: New → In Progress
Changed in xterm (Ubuntu Groovy):
importance: Undecided → Low
status: New → Invalid
no longer affects: mutter (Ubuntu)
no longer affects: mutter (Ubuntu Groovy)
Changed in mutter (Ubuntu):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello John, or anyone else affected,

Accepted mutter into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/3.38.1-2ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in mutter (Ubuntu Groovy):
status: New → Fix Committed
tags: added: verification-needed verification-needed-groovy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.38.1-2ubuntu1

---------------
mutter (3.38.1-2ubuntu1) groovy; urgency=medium

  * Merge with debian, including various upstream fixes. Remaining changes:
    - debian/gbp.conf: update upstream branch to point to ubuntu/master
    - debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
      + X11: Add support for fractional scaling using Randr

mutter (3.38.1-2) unstable; urgency=medium

  * debian/patches: Wayland start Xwayland on public X11 sockets as well
    (LP: #1897224)
  * debian/patches: Don't override window tile monitor (LP: #1900009)
  * debian/patches: Fix resizing issues (LP: #1878293)

 -- Marco Trevisan (Treviño) <email address hidden> Fri, 23 Oct 2020 12:43:24 +0200

Changed in mutter (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Verified fixed on groovy in libmutter-7-0 version 3.38.1-2ubuntu1

tags: added: verification-done-groovy
removed: verification-needed-groovy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.38.1-2ubuntu1

---------------
mutter (3.38.1-2ubuntu1) groovy; urgency=medium

  * Merge with debian, including various upstream fixes. Remaining changes:
    - debian/gbp.conf: update upstream branch to point to ubuntu/master
    - debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
      + X11: Add support for fractional scaling using Randr

mutter (3.38.1-2) unstable; urgency=medium

  * debian/patches: Wayland start Xwayland on public X11 sockets as well
    (LP: #1897224)
  * debian/patches: Don't override window tile monitor (LP: #1900009)
  * debian/patches: Fix resizing issues (LP: #1878293)

 -- Marco Trevisan (Treviño) <email address hidden> Fri, 23 Oct 2020 12:43:24 +0200

Changed in mutter (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for mutter has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in mutter:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.