Wayland: Cursor is 90° rotated on rotated screen

Bug #1967219 reported by Vadym Abramchuck
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Low
Unassigned
Jammy
Fix Released
Low
Jeremy Bícha

Bug Description

Impact
------
Cursor isn't pointed the right direction with multiple screens with different rotations. This seems to only happen when the Desktop Icons extension is disabled (for instance in the default GNOME session).

Test Case
-----------

1) Use one of the GNOME Shell extensions app to disable the Desktop Icons NG extension.
2) Plug in a second monitor.
3) Open the Settings App. Open the Displays page.
4) Set one of the screens to have Orientation: Portrait Right
5) Move your cursor from one screen to the other. It only happens if there aren't windows open under the cursor so this is easiest to reproduce if your windows are all minimized.

What Could Go Wrong
-------------------
See the master bug for this update at LP: #1972726

Original Bug Report
-------------------
I have a multi-screen setup with one of the displays being rotated (Portrait Right in Displays settings).

Since upgrading to Jammy the cursor gets 90° rotated after being moved from a landscape to the rotated screen.

This seems to be happening only in Overview or if cursor is hovered over the desktop. Hovering cursor over the application window (e.g. Terminal) would reset the rotation; however, after being moved back to the landscape screen, the cursor gets rotated again (but now in an opposite direction).

This doesn't happen on Xorg and it wasn't happening on impish (wayland).
This doesn't happen if desktop icons NG extension is enabled.

Additional notes: sometimes the dead cursor copy stays near the screen edge after cursor is being moved to a different screen.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mutter 42~beta-1ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 31 08:23:17 2022
InstallationDate: Installed on 2019-04-17 (1078 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190326.2)
SourcePackage: mutter
UpgradeStatus: Upgraded to jammy on 2022-03-30 (0 days ago)

Revision history for this message
Vadym Abramchuck (abramzzz) wrote :
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

DING is a workaround because it is actually an app window that covers the whole desktop, mostly transparent.

Revision history for this message
Vadym Abramchuck (abramzzz) wrote :

Note: I just found the issue is only happening if DING extension is disabled. I've updated the bug description but didn't find a way to update the title.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
tags: added: cursor
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in mutter (Ubuntu):
status: New → In Progress
Changed in mutter (Ubuntu):
status: In Progress → Fix Committed
tags: added: fixed-in-42.1 fixed-upstream
Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu Jammy):
importance: Undecided → Low
Changed in mutter (Ubuntu):
importance: Undecided → Low
Changed in mutter (Ubuntu Jammy):
status: New → In Progress
assignee: nobody → Jeremy Bicha (jbicha)
Jeremy Bícha (jbicha)
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Vadym, or anyone else affected,

Accepted mutter into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/42.1-0ubuntu1 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-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. 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 Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Changed in mutter:
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 42.1-1ubuntu1

---------------
mutter (42.1-1ubuntu1) kinetic; urgency=medium

  [ Jeremy Bicha ]
  * Merge from Debian unstable. Remaining changes:
    - Add triple-buffering patch
    - Add x11-Add-support-for-fractional-scaling-using-Randr.patch:
      + X11: Add support for fractional scaling using Randr
    - Add ubuntu/wayland-data-device-Allow-any-drag-timestamp....patch
      + Allow any drag timestamp as drag start serial
    - Add backends-native-kms-crtc-Don-t-compare-gamma-values-on-un.patch
      + Avoid memory errors when comparing gamma values
    - Add monitor-manager-Ensure-monitors-settings-after-backend-ha.patch
      + Ensure privacy screen settings are applied on startup
    - Add patches from GNOME !2364
      + Fix X11 selection related crash when Xwayland died
    - debian/libmutter-10-0.symbols: Add symbols for triple buffering patch
  * Refresh triple buffering patch with latest version

  [ Marco Trevisan (Treviño) ]
  * debian/patches: Adapt expected messages to new domains

mutter (42.1-1) unstable; urgency=medium

  * New upstream release
    (LP: #1972726, #1967274, #1965557, #1969574, #1948410, #1967219, #1971693)
  * Drop patches applied in new release
  * debian/libmutter-10-0.symbols: Add new symbol
  * debian/libmutter-10-0.symbols: Drop a symbol that was only in experimental
  * Add Breaks against old gtk3 & gtk4 versions.
    See Ubuntu bug 1972721
  * Release to unstable

mutter (42.0-5) experimental; urgency=medium

  * Team upload
  * d/patches: Update to upstream commit 42.0-74-g6c8e8fbba
    - Bug fixes targeted for 42.1
    - d/p/clutter-stage-Repick-when-pointer-actor-goes-unmapped.patch:
      Replace with the version that was applied upstream
    - d/p/core-Account-ClutterStage-grabs-on-Wayland-key-focus-sync.patch:
      Mark as applied upstream

mutter (42.0-4) unstable; urgency=medium

  * Team upload
  * d/patches: Update to upstream commit 42.0-55-gbe9deeba0
    - Update translations
    - Update upstream status of cherry-picked patches
    - Add various bug fixes including LP: #1959888, LP: #1964037
  * d/p/core-Account-ClutterStage-grabs-on-Wayland-key-focus-sync.patch:
    Add patch proposed upstream to fix grabs vs. system-modal prompts.
    This is particularly annoying when using pkexec, or when using gcr as
    a passphrase prompt for PGP, ssh and/or sudo.
    (Closes: #1008998, LP: #1964442)

 -- Jeremy Bicha <email address hidden> Fri, 13 May 2022 09:14:41 -0400

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Vadym Abramchuck (abramzzz) wrote :

Hi Timo,

Thanks for an update!

I can confirm the bug no longer happens with mutter (and friends, i.e. mutter-common, libmutter etc) 42.1-0ubuntu1 (installed from jammy-proposed). I'm not observing any other issues or side effects.

tags: added: verification-done-jammy
removed: verification-needed-jammy
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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 42.1-0ubuntu1

---------------
mutter (42.1-0ubuntu1) jammy; urgency=medium

  [ Jeremy Bicha ]
  * New upstream release
    (LP: #1972726, #1948410, #1967219, #1971693)
  * Refresh triple buffering patch with latest version
  * Drop patches applied in new release
  * debian/libmutter-10-0.symbols: Add new symbol
  * Add Breaks against old gtk3 & gtk4 versions.
    See Ubuntu bug 1972721

  [ Marco Trevisan (Treviño) ]
  * debian/patches: Adapt expected log messages to new domains

 -- Jeremy Bicha <email address hidden> Fri, 13 May 2022 12:10:07 -0400

Changed in mutter (Ubuntu Jammy):
status: Fix Committed → 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.