hyprland: tile Over the Hill despite its pinned window size
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3f4ee2579b
commit
56cad1cfb5
1 changed files with 17 additions and 0 deletions
|
|
@ -561,6 +561,23 @@ in
|
||||||
suppress_event = "fullscreen maximize",
|
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
|
-- Battle.net requests activation on its own while running, which
|
||||||
-- steals focus. Drop those events.
|
-- steals focus. Drop those events.
|
||||||
--
|
--
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue