[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/klipper
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2004-05-13 9:52:58
Message-ID: 20040513095258.1058722AE () office ! kde ! org
[Download RAW message or body]
CVS commit by lunakl:
Klipper really shouldn't react on its own clipboard changes. Should
take care of #80860.
CCMAIL: 80860-done@bugs.kde.org
M +8 -0 toplevel.cpp 1.150
--- kdebase/klipper/toplevel.cpp #1.149:1.150
@@ -632,4 +632,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