From 3874799a122e086cf88779f11e2fdd0f874e6e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Braz?= Date: Fri, 14 Oct 2022 01:38:00 -0300 Subject: [PATCH 1/3] Added Wayland specific exception Firefox --- contents/code/ignored.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contents/code/ignored.js b/contents/code/ignored.js index 2793057..33d2860 100644 --- a/contents/code/ignored.js +++ b/contents/code/ignored.js @@ -89,6 +89,12 @@ ignored.isIgnored = function(client) { return true; } + // HACK: On Wayland, Firefox's secondary windows doesn't have any resourceName + if (["Firefox — Sharing Indicator"].includes(client.caption)) { + print("Ignoring client because of firefox workaround", client.caption); + return true; + } + // KFind is annoying. It sets the window type to dialog (which is arguably wrong) and more importantly sets // the transient_for property for some bogus "Qt Client Leader Window". // From 27c14c4dbe2b5026cfe25a1d5c52b594b4c61c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Braz?= Date: Fri, 14 Oct 2022 01:39:54 -0300 Subject: [PATCH 2/3] Improved comment --- contents/code/ignored.js | 1 + 1 file changed, 1 insertion(+) diff --git a/contents/code/ignored.js b/contents/code/ignored.js index 33d2860..4182693 100644 --- a/contents/code/ignored.js +++ b/contents/code/ignored.js @@ -90,6 +90,7 @@ ignored.isIgnored = function(client) { } // HACK: On Wayland, Firefox's secondary windows doesn't have any resourceName + // so we check for their captions. if (["Firefox — Sharing Indicator"].includes(client.caption)) { print("Ignoring client because of firefox workaround", client.caption); return true; From 9c3950a2a6020d9bc90bb18ed1f18ef75ccf7def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Braz?= Date: Fri, 14 Oct 2022 01:40:47 -0300 Subject: [PATCH 3/3] Style fix --- contents/code/ignored.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/code/ignored.js b/contents/code/ignored.js index 4182693..066c086 100644 --- a/contents/code/ignored.js +++ b/contents/code/ignored.js @@ -93,7 +93,7 @@ ignored.isIgnored = function(client) { // so we check for their captions. if (["Firefox — Sharing Indicator"].includes(client.caption)) { print("Ignoring client because of firefox workaround", client.caption); - return true; + return true; } // KFind is annoying. It sets the window type to dialog (which is arguably wrong) and more importantly sets