Bug 156092

Summary: Sessions are not entirely restored when reloging
Product: [I don't know] kde Reporter: dc
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description dc 2008-01-18 12:12:53 UTC
Version:           4.00.00 (KDE 4.0.0) (using 4.00.00 (KDE 4.0.0), Kubuntu packages)
Compiler:          gcc
OS:                Linux (i686) release 2.6.22-14-generic

Session restore messes up.

I have 10 Desktops, with applications spread among them; like Kmail, Konqueror, Konsole, Firefox, etc.

While most of the application would restore on the correct desktop, I'm having trouble with two of them (I haven't tested all KDE applications...)

Konsole : I usually have many Konsole opened, each with a few tabs. None of them are restored. Just a new and only one is created with only the standard first tab.

Konqueror : All my previous konqueror windows are grouped back in Desktop 1. However, all the tabs are correctly restored.
Comment 1 dc 2008-01-18 12:15:07 UTC
Version : KDE 4.0.0
Platform : Linux, 2.6.22-14-generic, Kubuntu 7.10, i686
Comment 2 Pino Toscano 2008-01-18 12:25:21 UTC
> Konsole : I usually have many Konsole opened, each with a few tabs. None of them are restored.

This is bug #152761.
Comment 3 Lubos Lunak 2008-01-22 21:16:29 UTC
SVN commit 764895 by lunakl:

Fix window roles for KMainWindow:
- '#' in the window role is used by KWin to improve window grouping,
    so do the character-allowed-by-dbus only for the dbus name
- don't prepend app name to it - it adds up with session restore
- when name with #<number> is given, try to use it as given first
BUG: 156092



 M  +15 -10    tests/kmainwindow_unittest.cpp  
 M  +47 -13    widgets/kmainwindow.cpp  
 M  +5 -0      widgets/kmainwindow.h  
 M  +1 -0      widgets/kmainwindow_p.h  
 M  +1 -2      xmlgui/kxmlguiwindow.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=764895