GNOME 40 wayland-session exiting fullscreen doesn't restore original size & position

Bug #1947467 reported by Lukas Wiest
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Unknown
Mutter
Fix Released
Unknown
gnome-shell (Ubuntu)
Fix Released
Medium
Unassigned
mutter (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Switching applications between normal and fullscreen got slower and also it won't remember position and size of the window on exiting fullscreen compared to gnome 3.x.
I can also confirm this on a 20.04 installation with gnome 40 installed, that this is a degradation for gnome-shell 40 on wayland sessions. Xorg session is working fine.

I've tested this with
- firefox (F11 to enter/exit fullscreen)
- YouTube videos
- eog

On going to fullscreen it often looses focus, and on exit the window just gets resized to the full monitor resolution.

Rolling back my 20.04 machine to gnome 3.36 will make this work again under wayland.
Considered that gnome 40 is the default for 21.10 and also wayland is the default, I hope this get's investigated and a fix is found before 20.04 is EOL.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: gnome-shell 40.5-1ubuntu2
ProcVersionSignature: Ubuntu 5.13.0-19.19-generic 5.13.14
Uname: Linux 5.13.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Oct 16 21:23:23 2021
DisplayManager: gdm3
InstallationDate: Installed on 2021-10-16 (0 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: mutter-common 40.5-1ubuntu2
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Lukas Wiest (lukas-wiest) wrote :
summary: - gome 40 wayland-session exiting fullscrr
+ gome 40 wayland-session exiting fullscreen doesn't restore original size
+ & position
description: updated
description: updated
tags: added: gnome-shell
summary: - gome 40 wayland-session exiting fullscreen doesn't restore original size
- & position
+ GNOME 40 wayland-session exiting fullscreen doesn't restore original
+ size & position
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Changed in gnome-shell (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
tags: added: regression-release
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This will be fixed in gnome-shell 40.6 by:

commit aded2cd01b7af4d2bf355ed7cb129c6b869d84fb
Author: Florian Müllner <email address hidden>
Date: Wed Nov 3 20:53:06 2021 +0100

    Revert "layout: Exclude hidden actors from struts"

    The change unvealed a series of mutter bugs that for most
    users are worse than the issue that was fixed. So revert
    the change on stable branches until the mutter side is
    fixed.

    This reverts commit cd1102ff30b134e45e9b5ab48318e6a4eae03416.

tags: added: fixed-in-40.6 fixed-upstream
Changed in gnome-shell (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
NBR (nbr17) wrote :

I look forward to this fix. The problem also manifests when unlocking. Sometimes it gets stuck in a loop where the screen keeps flickering as elements resize, until I switch windows. Quite annoying and common in default 21.10.

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

The fix for GNOME 40 and 41 is in gnome-shell per comment #3.

The fix for GNOME 42 is in mutter instead, and just landed: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2066

Changed in mutter (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Changed in gnome-shell (Ubuntu):
status: Fix Committed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.0 KiB)

This bug was fixed in the package gnome-shell - 41.3-1ubuntu1

---------------
gnome-shell (41.3-1ubuntu1) jammy; urgency=medium

  * Merge with debian, containing various upstream fixes:
    - Window size is wrong after exiting full-screen (LP: #1947467)
  * debian/patches: Refresh to support GNOME 41 codebase
  * debian/patches: Remove patch to make overview starting optional
    This can be handled fully by the extensions that need it, so let's
    handle this in dash-to-dock instead that in upstream code
  * Remaining changes with debian:
    - Replace gnome-backgrounds dep with ubuntu-wallpapers and Suggests
      gnome-themes-standard-data, gnome-backgrounds
    - Add some Recommends:
      + ubuntu-session (| gnome-session) to have the ubuntu session available
      + xserver-xorg-legacy
      + yaru-theme-gnome-shell for the default ubuntu theming
      + gnome-remote-desktop to provide remote desktop support by default
    - Moved some Recommends to Suggests:
      + chrome-gnome-shell
    - Update debian/gbp.conf with Ubuntu settings
    - gnome-shell-common.prerm: Remove deprecated ubuntu theme alternative
    - ubuntu/desktop_detect.patch:
      + add caching for desktop detection to avoid querying the current
        desktop env variable as iterate through the list each time. For the
        time of the Shell process, we can expect this env variable to stay
        stable.
    - ubuntu/smarter_alt_tab.patch:
      + quick alt-tab (without showing up the switcher) switch only between
        the last window of the last 2 applications to be focused instead of
        raising all windows of those apps.
    - ubuntu/lightdm-user-switching.patch:
      + Allow user switching when using LightDM.
    - ubuntu/lock_on_suspend.patch
      + Respect Ubuntu's lock-on-suspend setting.
    - ubuntu/background_login.patch
      + Change default background color as we modified the default GDM color
        for our ubuntu session.
    - ubuntu/gdm_alternatives.patch
      + Add support for GDM3 theme alternatives
    - optional-hot-corner.patch
      + enable patch proposed by upstream developer already in package (but
        not in series) to add a settings for optional hot corner activation.
    - main-show-an-error-message-on-gnome-shell-crash.patch,
      global-make-possible-to-set-debug-flags-dynamically.patch,
      main-increase-the-granularity-of-backtraces-in-SHELL_DEBU.patch,
      main-add-backtrace-crashes-all-and-backtrace-all.patch,
      sessionMode-add-support-for-debugFlags-parameter.patch:
      + Improve debug JS tracing for crash reports
    - ubuntu/search-call-XUbuntuCancel-method-on-providers-when-no-dat.patch:
      + stop searches when requested from UI
    - magnifier-Show-cursor-when-magnifier-is-enabled-and-scale.patch:
      + Show monitor scaled cursor when magnifier is enabled
    - ubuntu/layout-Make-starting-in-the-overview-optional.patch:
      + Makes dock replace overview easier
    - ubuntu/layout-Try-to-allocate-before-getting-size-of-tracke.patch:
      + Ensure windows don't get maximized under the panels / dock
    - Break gnome-shell-extension-desktop-icons (<< 19.01.3+git20190814)
  * debian/patches: ...

Read more...

Changed in gnome-shell (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 42~beta-1ubuntu2

---------------
mutter (42~beta-1ubuntu2) jammy; urgency=medium

  * debian/patches: Skip monitor-size tests that may fail on autopkgtest

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 14 Mar 2022 02:27:21 +0100

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Changed in mutter:
status: Unknown → Fix Released
Changed in gnome-shell:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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