aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-10-08 20:28:30 +0100
committerVaxry <[email protected]>2024-10-09 13:47:52 +0100
commit7d0944acdf3c978bf1b5ddfb9b29ac8feb73b988 (patch)
tree8014b6f4d40ea617c5fc49aad6ac0d789d4ef764
parentb9990468f3f43b4167cfb94925dea5e8bbe7d871 (diff)
downloadHyprland-7d0944acdf3c978bf1b5ddfb9b29ac8feb73b988.tar.gz
Hyprland-7d0944acdf3c978bf1b5ddfb9b29ac8feb73b988.zip
defaultConfig: add a nofocus rule for weird X windows
ref #6543
-rw-r--r--example/hyprland.conf6
-rw-r--r--src/config/defaultConfig.hpp6
2 files changed, 10 insertions, 2 deletions
diff --git a/example/hyprland.conf b/example/hyprland.conf
index 4adc2d40..3478bcff 100644
--- a/example/hyprland.conf
+++ b/example/hyprland.conf
@@ -255,4 +255,8 @@ bindl = , XF86AudioPrev, exec, playerctl previous
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
-windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
+# Ignore maximize requests from apps. You'll probably like this.
+windowrulev2 = suppressevent maximize, class:.*
+
+# Fix some dragging issues with XWayland
+windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
diff --git a/src/config/defaultConfig.hpp b/src/config/defaultConfig.hpp
index 5843caa3..54ce6642 100644
--- a/src/config/defaultConfig.hpp
+++ b/src/config/defaultConfig.hpp
@@ -268,5 +268,9 @@ bindl = , XF86AudioPrev, exec, playerctl previous
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
-windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
+# Ignore maximize requests from apps. You'll probably like this.
+windowrulev2 = suppressevent maximize, class:.*
+
+# Fix some dragging issues with XWayland
+windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
)#";