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

List:       kde-commits
Subject:    kdelibs/kdecore
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2003-12-10 11:32:48
[Download RAW message or body]

CVS commit by lunakl: 

Don't forget to announce new selection owner after detecting it.


  M +3 -3      kmanagerselection.cpp   1.11


--- kdelibs/kdecore/kmanagerselection.cpp  #1.10:1.11
@@ -437,4 +437,5 @@ Window KSelectionWatcher::owner()
 //        kdDebug() << "isOwner: " << current_owner << endl;
         selection_owner = current_owner;
+        emit newOwner( selection_owner );
         }
     else
@@ -469,8 +470,7 @@ void KSelectionWatcher::filterEvent( XEv
         if( selection_owner == None || ev_P->xdestroywindow.window != selection_owner )
             return;
+        selection_owner = None; // in case the exactly same ID gets reused as the owner
         if( owner() == None )
             emit lostOwner(); // it must be safe to delete 'this' in a slot
-        else
-            emit newOwner( selection_owner );
         return;
         }


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

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