diff --git a/lib/extension/window.js b/lib/extension/window.js index cb85745..8fc9627 100644 --- a/lib/extension/window.js +++ b/lib/extension/window.js @@ -2457,7 +2457,16 @@ export class WindowManager extends GObject.Object { matchTitle = kf.wmTitle === windowTitle; } else { let titles = kf.wmTitle.split(","); - matchTitle = titles.filter((t) => windowTitle && windowTitle.includes(t)).length > 0; + matchTitle = titles.filter((t) => { + if (windowTitle) { + if (t.startsWith('!')) { + return !windowTitle.includes(t.slice(1)) + } else { + return windowTitle.includes(t) + } + } + return false + }).length > 0; } } if (kf.wmClass) {