[lunar] windows size/position is not saved for some apps

Bug #2013542 reported by Francois Thirioux
72
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Mutter
New
Unknown
mutter (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Hi,

Lunar up to date, Ubuntu session, Wayland or X11

1) open Synaptic not in full screen
2) change window size to full screen
3) close Synaptic
4) open Synaptic
5) its window is not maximized

Francois Thirioux (fthx)
description: updated
tags: added: lunar
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 → Low
Revision history for this message
Jaromir Obr (jaromir-obr) wrote :

It's a regression in 23.04 because it started after upgrade Ubuntu 22.10 => 23.04.
I have the issue with VSCode and Skype. The issue worsened UX of the applications I need to work maximized with as I still need to maximize them manually.

Revision history for this message
Lode Claassen (lodecl) wrote :

Some more apps I experience this with in case that helps:
- Thunderbird
- Spotify
- Slack

Revision history for this message
Munch (graystripe) wrote :

I experience this with Discord and the Heroic Games Launcher.

Revision history for this message
Liplan Lekipising (liplan) wrote :

I am experiencing the same issue. Affects Visual Studio Code, Settings, Files, Text Editor, Slack
Ubuntu 23.04

Revision history for this message
Adriano dos Santos Fernandes (adrianosf-gmail) wrote :

I'm having this issue in a machine upgraded from Ubuntu 22.10 to 23.04. It's very annoying!

In a VM installed with 23.04 directly, it does not happen.

Do you know reasons or possible reasons for that?

Revision history for this message
Jaromir Obr (jaromir-obr) wrote :

It would be great if anyone could add an explanation why such regression behavior started in 23.04.
Is it a bug or by design? Maybe it's possible to change the behavior in dconf editor?
For me it's a show stopper for upgrade of Ubuntu on other machines I have.

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

It might work in a VM because that uses Xorg? I'd expect this to be more of a problem for Wayland (https://gitlab.gnome.org/GNOME/mutter/-/issues/2374). At least with X11, apps/toolkits can remember and enforce their window position. In Wayland they can't. I can't find any upstream reports saying that it works less now than in previous releases though.

Revision history for this message
Adriano dos Santos Fernandes (adrianosf-gmail) wrote (last edit ):

My problem is the inverse. It works ok with Wayland and problematic with XOrg.

Edit: I do not know about window positions, my problem is that I want windows maximized, but in XOrg they always start not maximized.

Revision history for this message
Tais P. Hansen (taisph) wrote :

Here maximized VSCode windows are unmaximized when screen is locked and monitors enters powersave, making a mess of things.

Revision history for this message
Francois Thirioux (fthx) wrote :

Seems to be gone with GS 44.2 in Mantic (there are some related changes so there's no real surprise here).

Revision history for this message
Michalis Kamburelis (michalis-kambi) wrote :

> Seems to be gone with GS 44.2 in Mantic (there are some related changes so there's no real surprise here).

Before Mantic gets released (October 2023, from what I understand), does anyone have an idea for a workaround?

Anything one can tweak in the configuration, to make maximized windows restore properly? Or maybe it is possible to backport the fix to Ubuntu 23.04 packages? The problem is quite annoying.

I just tested and for me this happens regardless of Wayland and X11, and it affects many applications.

Tested:

* GNOME on Xorg
* GNOME on Wayland (I made sure to check whether I'm in Wayland/X11 using `loginctl show-session <id> -p Type`)
* GNOME Classic on Xorg

A number of applications cannot restore from maximized state. This includes:

* VS Code (regular and insiders) (native, from deb)
* Todoist (installing using snap)
* Synaptic (from deb naturally)
* Castle Game Engine editor ( https://castle-engine.io/ ). I'm the author of this, I know the code. It uses LCL on top of GTK 2, for now (switching to newer GTK version is planned). And it suffers from the same issue -- the project window saves/restores the window size and maximized state, and it stopped working after upgrade to Ubuntu 23.04.

Revision history for this message
Francois Thirioux (fthx) wrote :

Was a false SOLVED, sorry...
(Wayland session, NVIDIA dGPU, at least)

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Yes, we are working on getting GNOME Shell 44.2 to Ubuntu 23.04 but we have to finish the 44.1 update first.

But the previous followup comment says the behavior may not have changed in 44.2.

Revision history for this message
Jaromir Obr (jaromir-obr) wrote :

Can't reproduce it anymore in Ubuntu 23.04 (was able to reproduce it last time on 2023-05-26). Was it fixed?

When I run VSCode (snap), maximize window, close VSCode and run again, window is maximized ✔
When I run VSCode, resize window, close VSCode and run again, window is resized ✔
I also tested with Slack (snap) and Skype (DEB), with the same result.

I have GNOME Shell 44.2 in Ubuntu 23.04

tags: added: regression-release
Changed in mutter (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Changed in mutter:
status: Unknown → New
Revision history for this message
Pushkar Gogte (pushkar-1) wrote :

this issue still exists for Xorg/X11 with gnome 44.3

Revision history for this message
Anton Sudak (anton-sudak) wrote :

Seems that the issue was solved in mutter 44.4, will fix be available in lunar?

https://gitlab.gnome.org/GNOME/mutter/-/issues/2579

Revision history for this message
Francois Thirioux (fthx) wrote :

The bug is not solved using X11.
I hit this using GS 45rc from Mantic.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in mutter:
status: New → Unknown
no longer affects: gnome-shell (Ubuntu)
Changed in mutter (Ubuntu):
status: Confirmed → Fix Released
tags: added: fixed-in-mutter-44.4 fixed-upstream
Changed in mutter (Ubuntu):
status: Fix Released → Confirmed
tags: removed: fixed-in-mutter-44.4 fixed-upstream
Revision history for this message
Francois Thirioux (fthx) wrote :

Clearly I do experience this bug only using X11 (at the moment I have to use Nvidia + X11 since Intel hdmi seems to be broken in new 6.5 kernel and Nvidia + Wayland leads to an unusable desktop because of erratic keyboard entries, erratic menu item selection and so on, e.g. with Firefox snap).

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

"Nvidia + Wayland" being erratic is bug 1970389

Revision history for this message
David Borin (dborin) wrote :

Also experiencing this issue in:

Slack
Terminator

But not Firefox (interestingly). Also, any app that runs in fullscreen is fine. It's only maximized. This is on X11

Changed in mutter:
status: Unknown → New
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.