Yes, this issue has been driving me nuts since the beta of 24.04. I have
even reported this but cannot find the ticket, better there is a
separate ticket though. I think this affects qt5 apps somehow and I have
a workaround to "remember" the maximized state. I can reproduce this
anywhere and also in a VM environment.

The workaround is the following:
- start the app (it is not maximized obviously)
- press Alt+Up to maximize and then Alt+Down to unmaximize
- find out the window class name and run this in the terminal:
xdotool search --class "$name" windowsize %@ 100% 100%
- close the app/window

Now, when you restart it will be in a maximized state.

In my real environment it is a bit harder because I also have multiple
monitors and this makes it even harder as I need to move the window from
one to another, maximize there and then move back for some reason.

Apps that I have this problem with:
code (VS code)
git-cola (python qt5 app)
other qt5 apps

Additionally, for the qt5 aps to look nice in Gnome I use 
export QT_QPA_PLATFORM=xcb
so it may be related somehow.

I am willing to help to track this issue...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2083744

Title:
  Window Maximized is not persistent for some apps after startup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/2083744/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to