Keep a game running while it sits on another workspace
Read hyprwm/Hyprland discussion 12339 in full: an XWayland Proton game stops rendering on a hidden workspace when nothing on the visible screen animates, render_unfocused, content game and higher render_unfocused_fps did not help, only turning VFR off did, and there are no replies, so 'no maintainer fix' holds. The Arch Wayland wiki section lists the symptoms (audio dropping, game not progressing, ping rising, network dropping), ties them to VSync, and gives MESA_VK_WSI_PRESENT_MODE=immediate at the cost of VSync and VRR. The hyprland-wiki window-rules page shows the Lua hl.window_rule({ match = {...}, effect }) syntax and render_unfocused, config-options puts render_unfocused_fps under Misc (default 15) and vfr under Debug (default true). Confirmed on Hyprland 0.56.2-2 with read-only hyprctl getoption misc:render_unfocused_fps (15) and hyprctl getoption debug:vfr (true), and render_unfocused is in WindowRuleEffectContainer.cpp at tag v0.56.2. Omarchy 4.0.4 sets neither option nor a game rule in /usr/share/omarchy/default/hypr, so the user-level edit is not overridden. Not exercised with a game.
debug.vfr = false makes Hyprland render every frame even when nothing changes, which raises idle power use noticeably on a laptop. Keep it only if the window rule alone is not enough.
Symptom
When I switch away from a game to another workspace, it stops: audio drops out, the game stops progressing, online games lag or disconnect from the server. It only keeps going while something visibly animates on screen or I move the mouse. Switching back resumes it.
Cause
Hyprland stops sending frame callbacks to windows that are not visible. A game with VSync or FIFO presentation then blocks waiting for a frame that never comes. The render_unfocused window rule makes Hyprland keep rendering a hidden window at misc.render_unfocused_fps (default 15). With variable frame rate (debug.vfr, default on), Hyprland may still not render at all while the visible screen is static, and in hyprwm/Hyprland discussion #12339 a user found render_unfocused alone did not help and only turning VFR off did. No maintainer fix there yet.
Fix
Find the game's class (Proton games are usually steam_app_<id>):
hyprctl clients | grep -E 'class|title'
Add to the bottom of ~/.config/hypr/hyprland.lua (Hyprland 0.55+, Omarchy 4 and current Arch):
hl.window_rule({ match = { class = "^steam_app_.*" }, render_unfocused = true })
hl.config({
misc = {
render_unfocused_fps = 60,
},
})
If the game still stalls while the visible workspace is idle, disable VFR as well:
hl.config({
debug = {
vfr = false,
},
})
The Arch wiki also lists MESA_VK_WSI_PRESENT_MODE=immediate as a per-game launch option (MESA_VK_WSI_PRESENT_MODE=immediate %command%) on Mesa drivers, at the cost of VSync and VRR.
Verify
Start the game, switch workspaces for a minute while not touching the mouse, and switch back: game time has advanced and audio kept playing.