From a28aec3c9fb71a982a2400d8cf4f3fdc645dbe34 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Wed, 28 Dec 2022 21:19:58 -0500 Subject: [PATCH] fix: clipboard changes isn't ignored --- mainwindow.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index e7f7ce1b..3968c2d1 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -890,11 +890,18 @@ void MainWindow::clipboardChange( QClipboard::Mode m) if(m == QClipboard::Selection){ - // Multiple ways to stoping a word from showing up when selecting + // Multiple ways to stopping a word from showing up when selecting - // Explictly disabled on preferences + // Explicitly disabled on preferences if(!cfg.preferences.trackSelectionScan) return; + // Explicitly disabled on preferences to ignore gd's own selection + + if( cfg.preferences.ignoreOwnClipboardChanges + && QApplication::clipboard()->ownsSelection() ){ + return ; + } + // Keyboard Modifier if(cfg.preferences.enableScanPopupModifiers && !KeyboardState::checkModifiersPressed(cfg.preferences.scanPopupModifiers)){