From 56cad1cfb515043e6be0ab4bbe892164973b48ea Mon Sep 17 00:00:00 2001 From: rope Date: Fri, 16 Oct 2026 12:00:52 +0100 Subject: [PATCH] hyprland: tile Over the Hill despite its pinned window size Co-Authored-By: Claude Opus 5.5 --- settings/hyprland.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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. --