--Boundary-00=_Jjoy9ajLS3N22fV Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, This patch fixes the long standing problem that when starting your KDE session, there's no desktop selected in the minipager applet in kicker. Should I commit ? Greetings, -- Antonio Larrosa Jimenez KDE core developer - larrosa@kde.org http://devel-home.kde.org/~larrosa/ Furious activity is no substitute for understanding. --Boundary-00=_Jjoy9ajLS3N22fV Content-Type: text/x-diff; charset="us-ascii"; name="minipager.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="minipager.diff" Index: pagerapplet.cpp =================================================================== RCS file: /home/kde/kdebase/kicker/applets/minipager/pagerapplet.cpp,v retrieving revision 1.84 diff -u -p -r1.84 pagerapplet.cpp --- pagerapplet.cpp 2002/10/06 19:49:35 1.84 +++ pagerapplet.cpp 2002/11/07 15:16:33 @@ -280,7 +280,7 @@ KMiniPager::KMiniPager(const QString& co connect( kwin_module, SIGNAL( stackingOrderChanged() ), this, SLOT( slotStackingOrderChanged() ) ); connect( kwin_module, SIGNAL( desktopNamesChanged() ), this, SLOT( slotDesktopNamesChanged() ) ); - slotSetDesktop( 1 ); + slotSetDesktop( curDesk ); } KMiniPager::~KMiniPager() @@ -484,6 +484,8 @@ void KMiniPager::slotSetDesktopCount(int curDesk = kwin_module->currentDesktop(); if (curDesk == 0) // kwin not yet launched curDesk = 1; + if ( (int) btnList.count() >= curDesk ) + btnList[curDesk-1]->setOn(true); resizeEvent(0); updateLayout(); } --Boundary-00=_Jjoy9ajLS3N22fV--