From ee20ccb003400dbb00f29bb48312905590988a28 Mon Sep 17 00:00:00 2001 From: Thierry Schork Date: Thu, 12 Feb 2026 09:47:40 +0100 Subject: [PATCH] - correcting jetbrain xwayland window rules following post found in https://github.com/hyprwm/Hyprland/issues/4257 --- .config/hypr/hyprland.conf | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 7cf9fd6..01f13b8 100755 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -330,8 +330,24 @@ windowrule { float = off } +#jetbrain xwayland fixes. see https://github.com/hyprwm/Hyprland/issues/4257 windowrule { - name = tiled_xwayland - match:xwayland = 1 - float = off + name = windowrule-jb-tag + tag = +jb + match:class = ^jetbrains-.+$ + match:float = 1 } + +windowrule { + name = windowrule-jb-focus + stay_focused = on + no_initial_focus = on + match:tag = jb +} + +windowrule { + name = windowrule-jb-focus2 + focus_on_activate = on + match:class = ^jetbrains-(?!toolbox)" +} +