Fix: Jetbrains popup dialog would not get focus automatically (#3326)

* Fix: Jetbrains popup dialog would not get focus automatically

The config shipped with omarchy misbehaves with popups. Opening a popup
would not shift the focus automatically to it, requiring manual click on
it to start typing into it.

You can reproduce with by trying to open any popup dialog (for example
CTRL+T on Rider, or CTRL+SHIFT+F)

This config with `-Dawt.toolkit.name=WLToolkit` in the custom VM options
fixes all the issues I have with jetbrains. I am also making a dedicated
workspace which float all windows just for jetbrains.

* Use existing formatting conventions

* More tweaks

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Nicolas Dorier
2025-11-11 23:54:25 +09:00
committed by GitHub
parent 03cbbd2f7f
commit bea57919b6

View File

@@ -1,9 +1,19 @@
# JetBrains windows default size # Fix splash screen showing in weird places and prevent annoying focus takeovers
windowrule = size 50% 50%, class:(.*jetbrains.*)$, title:^$ windowrule = tag +jetbrains-splash, class:^(jetbrains-.*)$, title:^(splash)$, floating:1
windowrule = center, tag:jetbrains-splash
windowrule = nofocus, tag:jetbrains-splash
windowrule = noborder, tag:jetbrains-splash
# Fix tab dragging (tab titles are just one space) # Center popups/find windows
windowrule = noinitialfocus, class:^(.*jetbrains.*)$, title:^\\s$ windowrule = tag +jetbrains, class:^(jetbrains-.*), title:^()$, floating:1
windowrule = center, tag:jetbrains
# Allow dialogs (like "Send usage statistics") to be focusable and clickable # Enabling this makes it possible to provide input in popup dialogs (search window, new file, etc.)
windowrule = unset,nofocus,class:^(.*jetbrains.*)$,title:^$ windowrule = stayfocused, tag:jetbrains
windowrule = unset,noinitialfocus,class:^(.*jetbrains.*)$,title:^$ windowrule = noborder, tag:jetbrains
# For some reason tag:jetbrains does not work for size rule
windowrule = size >50% >50%, class:^(jetbrains-.*), title:^()$, floating:1
# Disable window flicker when autocomplete or tooltips appear
windowrule = noinitialfocus, class:^(jetbrains-.*)$, title:^(win.*)$, floating:1