[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/windowmanagement
From:       Carlo Segato <brandon.ml () gmail ! com>
Date:       2010-08-20 17:44:18
Message-ID: 20100820174418.24442AC855 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1166064 by segato:

don't activate a window if wid is null, this accidentally fixes a bug with the \
taskmanager applet(minimizing a task already active now works, since the WId of the \
plasma panel is null(no idea why) and so it doesn't become the active window when \
clicking on it)

 M  +4 -0      kwindowsystem_win.cpp  


--- trunk/KDE/kdelibs/kdeui/windowmanagement/kwindowsystem_win.cpp #1166063:1166064
@@ -315,6 +315,10 @@
 void KWindowSystemPrivate::windowActivated (WId wid)
 {
 //     kDebug() << "window activated!";
+    if (!wid) {
+        return;
+    }
+
     KWindowSystem::s_d_func()->reloadStackList();
     emit KWindowSystem::self()->activeWindowChanged(wid);
     emit KWindowSystem::self()->stackingOrderChanged();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic