diff --git a/settings/hyprland.nix b/settings/hyprland.nix index ed0a583..1a4f746 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -561,6 +561,23 @@ in suppress_event = "fullscreen maximize", }) + -- Over the Hill (Unity, Proton, in-game Windowed). The game pins its + -- window to the saved resolution (min size == max size), and + -- tile = true alone can't beat that: dwindle floats any window whose + -- max size is smaller than its tile ("we can't continue. make it + -- floating."). no_max_size + min_size replace the client's limits. + -- Unity follows whatever size the configure sends, so it then tiles + -- and resizes normally. The native Linux build resizes the same way, + -- but its camera stops at the window edge (it confines the cursor + -- instead of locking it), so Proton it is. + hl.window_rule({ + name = "over-the-hill-size", + match = { class = "^steam_app_2929250$" }, + tile = true, + no_max_size = true, + min_size = "200 200", + }) + -- Battle.net requests activation on its own while running, which -- steals focus. Drop those events. --