Bug 1181316 - yast2 fails to remember window size and position
yast2 fails to remember window size and position
Status: CONFIRMED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: YaST2
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: YaST Team
Jiri Srain
https://trello.com/c/rgiKFcXE
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-01-22 23:02 UTC by Dev Guy
Modified: 2021-07-31 22:32 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
setting size and position properties (70.74 KB, image/png)
2021-01-22 23:04 UTC, Dev Guy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dev Guy 2021-01-22 23:02:42 UTC
I have gone into the windows and application setting to tell yast2 to remember position and size and the app doesn't save this info. Even the new added properties fail to save.

I honestly think by default all window size and position should be maintained between invocations.
Comment 1 Dev Guy 2021-01-22 23:04:22 UTC
Created attachment 845455 [details]
setting size and position properties
Comment 2 Dev Guy 2021-01-22 23:07:21 UTC
In the picture, it shows, "Do Not Affect" but I did change this to, "Remember" after I took the snapshot.
Comment 3 José Iván López González 2021-01-25 10:40:32 UTC
Hi! Well, YaST (and specially YaST Partitioner) usually closes and opens windows constantly. This is something we should improve in the future. But regarding your report, it is something for KDE instead. Probably your configuration is not matching the YaST windows properly. I going to reassign the bug for a better guidance. Thanks!
Comment 4 Fabian Vogt 2021-01-25 10:59:02 UTC
For some reason YaST's WM_NAME and WM_CLASS properties end with quite a few spaces. That's probably not intentional and should be fixed in YaST.

Another issue is that the autogenerated rules don't include the trailing whitespace. Workaround for that is to use "Substring match" instead of "Exact match" for the window class.

In the screenshot, I see that you use "Do not affect". That means that it doesn't really do anything and you probably want to use "Remember" instead. Also, I recommend to use only Window Type "Normal", as otherwise confirmation and error dialogs are also affected.
Comment 5 Dev Guy 2021-01-26 05:33:42 UTC
@Fabian thanks the comments helped as a work around.
Comment 6 Fabian Vogt 2021-01-26 08:22:14 UTC
Clearing NEEDINFO and reassigning to YaST for the WM_CLASS/WM_NAME part.

For KWin, I filed https://bugs.kde.org/show_bug.cgi?id=432137.
Comment 7 Fabian Vogt 2021-01-26 10:18:31 UTC
(In reply to Fabian Vogt from comment #6)
> Clearing NEEDINFO and reassigning to YaST for the WM_CLASS/WM_NAME part.

This is caused by this: https://github.com/yast/yast-ruby-bindings/blob/77a53a396d1901a3a0c9b3d20c595beb3e570320/src/ruby/yast/y2start_helpers.rb#L98

It also appends the hostname unconditionally, even with local X11 connections, which is unlike what libyui-qt does in YQUI::initUI().
Comment 8 Dev Guy 2021-07-31 22:32:17 UTC
I am seeing the same problem with a fresh install of Tumbleweed!

The yast system applications fail to remember their size and position, even after I "Configured special window setting" and added size and position and set them both to "remember".

open yast control center, then click on:

- software management
- software  repository
- printer
- partition

probably others, all always open up taking up the entire screen, on a dual monitor setup the behavior is even worse.

Operating System: openSUSE Tumbleweed 20210729
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.4-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: Radeon RX 570 Series