Bug 292785

Summary: Minimize state not preserved
Product: [Plasma] kwin Reporter: Michał D. (Emdek) <emdeck>
Component: generalAssignee: Lubos Lunak <l.lunak>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adaptee, kwin-bugs-null, r2b2x3+kdebug
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: KWin session file

Description Michał D. (Emdek) 2012-01-29 12:01:52 UTC
Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

In my session I have several windows opened (two instances of Kate and one of Dolphin on first virtual desktop and fullscreen instance of Okular on second one) and I always leave them all minimized (except Okular) when I close session.
Since KDE 4.8 minimize state of applications is not restored when session is resumed, all windows shows up and additionally Okular instance now always demands attention after start (in this case I'm "only" 99% sure that it wasn't doing that before update).
Other attributes, like size, location and fullscreen are restored correctly.
The same can be reproduced on default configuration.

Reproducible: Always

Steps to Reproduce:
1. open several windows;
2. minimize them all;
3. log out;
4. log in;

Actual Results:  
Minimize state is lost

Expected Results:  
Minimize state should be restored
Comment 1 Jekyll Wu 2012-01-29 13:23:48 UTC
I can reproduce the reported problem using the master branch
Comment 2 Michał D. (Emdek) 2012-01-29 17:30:30 UTC
Created attachment 68306 [details]
KWin session file
Comment 3 Michał D. (Emdek) 2012-01-29 17:33:05 UTC
It appears that state is saved correctly, only not restored.
I have no idea how it works, but in ksmserver sources I can't find "iconified", is that set by KWin?
Comment 4 Thomas Lübking 2012-02-27 15:56:53 UTC
high chance of being bug #290392

Please check if possible and deny or confirm duplicate status. Thanks and sorry.

*** This bug has been marked as a duplicate of bug 290392 ***
Comment 5 Michał D. (Emdek) 2012-02-27 16:06:55 UTC
Looks like at least partially possible (at least that attention demanding).
Will check when 4.8.1 will be available (KWin crashes for me on kde-build due to loading oxygen library from wrong prefix...).
Comment 6 Thomas Lübking 2012-02-27 16:12:43 UTC
OT:
----------
QT_PLUGIN_PATH=/opt/kde4/lib/kde4/plugins: kwin --replace

notice the trailing colon and also see the thread on k-c-d
Comment 7 Michał D. (Emdek) 2012-02-28 09:35:06 UTC
That didn't work for me (maybe something is messed up), but primitive method (temporary renaming and linking to proper plugins directory....) allowed me to check it and it appears to work fine (although tested only on dolphin instances but that shouldn't matter), both restoring state and no more attention demanding.