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

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdebase/klipper
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2004-05-13 9:53:26
Message-ID: 20040513095326.0D8A222AE () office ! kde ! org
[Download RAW message or body]

CVS commit by lunakl: 

Backport r1.150.


  M +8 -0      toplevel.cpp   1.142.2.5


--- kdebase/klipper/toplevel.cpp  #1.142.2.4:1.142.2.5
@@ -646,4 +646,12 @@ void KlipperWidget::newClipData()
 void KlipperWidget::clipboardSignalArrived( bool selectionMode )
 {
+    // Don't react on Klipper's own actions. This signal comes either
+    // from this process when it sets the clipboard (in which case ignoring
+    // it is ok) or when another process sets the clipboard, in which
+    // case this process should have got already SelectionClear from that
+    // another process and therefore it shouldn't think it owns the clipboard.
+    if( selectionMode ? clip->ownsClipboard() : clip->ownsSelection())
+        return;
+
 //     qDebug("*** clipboardSignalArrived: %i", selectionMode);
 


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

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