File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,10 @@ class PanoExtension {
162
162
if (
163
163
wmClass &&
164
164
this . settings . get_boolean ( 'watch-exclusion-list' ) &&
165
- this . settings . get_strv ( 'exclusion-list' ) . indexOf ( wmClass ) >= 0
165
+ this . settings
166
+ . get_strv ( 'exclusion-list' )
167
+ . map ( ( s ) => s . toLowerCase ( ) )
168
+ . indexOf ( wmClass . toLowerCase ( ) ) >= 0
166
169
) {
167
170
clipboardManager . stopTracking ( ) ;
168
171
} else if ( clipboardManager . isTracking === false ) {
Original file line number Diff line number Diff line change @@ -155,6 +155,18 @@ export class ClipboardManager extends Object {
155
155
if ( this . settings . get_boolean ( 'is-in-incognito' ) ) {
156
156
return ;
157
157
}
158
+ const focussedWindow = Global . get ( ) . display . focus_window ;
159
+ const wmClass = focussedWindow ?. get_wm_class ( ) ;
160
+ if (
161
+ wmClass &&
162
+ this . settings . get_boolean ( 'watch-exclusion-list' ) &&
163
+ this . settings
164
+ . get_strv ( 'exclusion-list' )
165
+ . map ( ( s ) => s . toLowerCase ( ) )
166
+ . indexOf ( wmClass . toLowerCase ( ) ) >= 0
167
+ ) {
168
+ return ;
169
+ }
158
170
if ( selectionType === SelectionType . SELECTION_CLIPBOARD ) {
159
171
try {
160
172
const result = await this . getContent ( ClipboardType . CLIPBOARD ) ;
You can’t perform that action at this time.
0 commit comments