re-show all hidden windows at explorer termination

svn path=/trunk/; revision=8121
This commit is contained in:
Martin Fuchs 2004-02-09 22:37:52 +00:00
parent 418a293612
commit 9c5264c5eb
2 changed files with 10 additions and 1 deletions

View file

@ -71,8 +71,16 @@ Desktop::~Desktop()
Desktops::Desktops() Desktops::Desktops()
: _current_desktop(0)
{ {
_current_desktop = 0; }
Desktops::~Desktops()
{
// show all hidden windows
for(iterator it_dsk=begin(); it_dsk!=end(); ++it_dsk)
for(WindowSet::iterator it=it_dsk->_windows.begin(); it!=it_dsk->_windows.end(); ++it)
ShowWindowAsync(*it, SW_SHOW);
} }
void Desktops::init() void Desktops::init()

View file

@ -191,6 +191,7 @@ typedef Desktop DesktopRef;
struct Desktops : public vector<DesktopRef> struct Desktops : public vector<DesktopRef>
{ {
Desktops(); Desktops();
~Desktops();
void init(); void init();
void SwitchToDesktop(int idx); void SwitchToDesktop(int idx);