Fix JetBrains IDE popups that close or lose focus when the mouse moves
Confirmed /usr/share/omarchy/default/hypr/apps/jetbrains.lua (and the quattro copy) is o.window("^(jetbrains-.*)$", { no_follow_mouse = true }), and o.window in helpers.lua wraps hl.window_rule with match.class, so the record's override line is the same rule shape. input.lua sets follow_mouse = 1. The Hyprland wiki window-rules page says effects are processed top to bottom and the last match takes precedence, and documents no_follow_mouse. ~/.config/hypr/hyprland.lua loads default.hypr.omarchy first, so a rule appended at its bottom wins. The JetBrains blog confirms Wayland by default from 2026.1, the -Dawt.toolkit.name=auto mechanism, the XToolkit fallback via Edit Custom VM Options, the About/Copy toolkit line, and that some popups such as Search Everywhere cannot leave the main frame. Issue 7454 and its comments match the three-way popup behaviour and the no_follow_mouse = false workaround, and the record honestly states low confidence about which combination works. The comment on PR 5183 describes the original focus problem. The two cross-referenced slugs exist in the corpus. Not exercised: any JetBrains IDE.
Symptom
In IntelliJ IDEA, Rider, GoLand or another JetBrains IDE on Hyprland, the Find in Files popup closes as soon as the mouse leaves it, or Go to Line loses keyboard focus unless the pointer is over it. Search Everywhere behaves differently from both. Hovering the main editor window no longer focuses it.
Cause
Omarchy's default input.follow_mouse focuses whatever is under the pointer, and JetBrains popups are separate windows, so moving the mouse off a popup takes focus away and some popups close when they lose focus. Omarchy ships /usr/share/omarchy/default/hypr/apps/jetbrains.lua with no_follow_mouse = true for every jetbrains-* class to stop that, which also stops the main IDE window from taking focus on hover. Separately, IntelliJ-based IDEs 2026.1 and later run natively on Wayland by default (the launcher passes -Dawt.toolkit.name=auto, which becomes WLToolkit when a Wayland display is available), and in that mode some popups are no longer separate windows. Reports on omarchy#7454 disagree on which setting behaves better with current IDEs, and one reporter fixed their case by turning the Omarchy rule off. Confidence in which popup breaks under which combination is low. The two settings below are what can actually be changed.
Fix
- Check which toolkit the IDE uses: Help, About, Copy and Close, then paste. The text includes
Toolkit: sun.awt.wl.WLToolkit(native Wayland) or the X toolkit. Or:
hyprctl clients -j | jq -r '.[] | select(.class|test("^jetbrains-")) | "\(.class) xwayland=\(.xwayland)"'
- **If the IDE is on Wayland (2026.1 or later) and popups misbehave**, try turning Omarchy's rule off for it. Rules are processed top to bottom and the last match wins, so append to the bottom of
~/.config/hypr/hyprland.lua:
hl.window_rule({ match = { class = "^(jetbrains-.*)$" }, no_follow_mouse = false })
Save, restart the IDE, and test the popups that failed.
- **If that is worse, or the IDE is older than 2026.1**, keep Omarchy's rule (remove the line above) and, if popups still break, move the IDE to X11, which JetBrains documents as the supported fallback. Help, Edit Custom VM Options, add:
-Dawt.toolkit.name=XToolkit
and restart the IDE. Under XWayland the gray-window and scaling records (java-gray-window-nonreparenting, gdk-scale-mismatch-oversized-xwayland) apply.
- To go the other way on an older IDE,
-Dawt.toolkit.name=WLToolkitenables native Wayland manually. Other Java apps have no WLToolkit unless you run them on an OpenJDK Wakefield build, which the Arch wiki describes.
If no combination works, report it to JetBrains YouTrack with the toolkit line from step 1.
Verify
Open Find in Files (Ctrl+Shift+F), move the mouse to the editor and back, and type. The popup should stay open and keep its input. hyprctl clients -j shows the IDE's xwayland value matching the toolkit you chose.