OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
hyprland-config medium occasional DISPUTE

Fix JetBrains IDE focus problems: autocomplete steals focus, tabs drop while dragging

hyprlandarchomarchywayland
AUDITED Audited against its sources and confirmed accurate. · checked against Omarchy omarchy 4.0.4-1 on 2026-10-05
AUDIT NOTE

The Arch wiki Hyprland page (raw wikitext, section 'Jetbrains apps focus issues') describes both symptoms and gives exactly the plain Arch rule hl.window_rule({ match = { xwayland = true }, no_initial_focus = true }). It links Hyprland issue 1120, 'dragging tabs to split inside pycharm fails'. In Hyprland v0.56.2 source, xwayland is a valid match property (Rule.cpp MATCH_PROP_STRINGS) and no_initial_focus is a boolean window rule effect (LuaBindingsInternal.hpp WINDOW_RULE_EFFECT_DESCS). The Omarchy branch is correct: o.window in /usr/share/omarchy/default/hypr/helpers.lua copies a table argument into match and treats a string as the class, and Omarchy's own default/hypr/apps/jetbrains.lua already matches the IDEs with the same '^(jetbrains-.*)$' pattern (it sets no_follow_mouse, a different rule, so the record's rule is additive). hyprctl clients -j does expose an xwayland boolean. The cause, that the popups are separate XWayland windows that get focus when they map, is the wiki's framing and was not reproduced here. No IDE was run.

Symptom

In IntelliJ IDEA, PyCharm or another JetBrains IDE under Hyprland, the autocomplete popup steals keyboard focus until you move the mouse, and dragging an editor tab past the tab bar drops it instead of letting you split or move it.

Cause

JetBrains IDEs run under XWayland, and their popups and drag windows are separate X11 windows that Hyprland focuses when they map. Focusing them takes input away from the editor and cancels the tab drag.

Fix

Stop Hyprland giving XWayland windows initial focus.

**Plain Arch**, in ~/.config/hypr/hyprland.lua:


hl.window_rule({
  match = { xwayland = true },
  no_initial_focus = true,
})

**Omarchy 4**, in ~/.config/hypr/hyprland.lua below the defaults:


o.window({ xwayland = true }, { no_initial_focus = true })

That rule touches every XWayland app. To limit it to the IDEs, match their class instead. Read the class with hyprctl clients -j | jq -r '.[] | select(.xwayland) | .class' and use it, for example:


o.window("^(jetbrains-.*)$", { no_initial_focus = true })

Verify

Typing in the editor while autocomplete opens keeps focus in the editor, and a dragged tab can be dropped into a split.

Sources

jetbrains-ide-focus-stolen-popups-tab-drag