OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
wayland-compat high common DISPUTE

Stop Steam games flickering between sizes instead of going fullscreen

omarchyarchendeavouroscachyosmanjarohyprlandwaylandxwaylandnvidiaamddesktop
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

The diagnosis is sound and omarchy#4595 ('Steam games (xwayland) won't fullscreen.') is real, as is gamescope in extra. The gap is that xrandr is not present on a stock Omarchy install (xorg-xrandr is not in install/omarchy-base.packages), so the very first step, an exec-once/autostart line calling xrandr, fails silently at session start with 'command not found' and the user never learns why the wrong-monitor fix did nothing. A command placed in autostart must come with its package. Two smaller gaps: hyprctl monitors is offered for finding the ID but the XWayland-side name should be confirmed with xrandr --listmonitors, and the trailing stayfocused rule is given only in hyprlang with no 0.55+ form.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.

Symptom

Steam games will not go fullscreen: the window rapidly flickers between sizes and positions, sometimes z-fighting with the bar. Mashing SUPER+F occasionally lands on a maximised window. Windowed mode works, but switching back to fullscreen restarts the flicker. Separately: fullscreen games open at the wrong monitor's resolution on multi-monitor setups.

Cause

An XWayland fullscreen-request loop: the game asks X for a mode change, XWayland resizes the surface, the compositor responds with a different size, and the game asks again. On multi-monitor setups the second symptom is that XWayland's default primary output is not the monitor you want, so games size themselves to the wrong screen.

Fix

For the wrong-monitor resolution, set the X11 primary output at session start. xrandr is NOT installed by default on Omarchy, so install it first or the autostart line silently does nothing:


sudo pacman -S --needed xorg-xrandr

Find your monitor ID with hyprctl monitors, and confirm XWayland sees the same name with xrandr --listmonitors, then:

Hyprland <=0.54 / Omarchy 3.x (~/.config/hypr/hyprland.conf):


exec-once = xrandr --output DP-3 --primary

Hyprland 0.55+ / Omarchy 4.x (~/.config/hypr/autostart.lua):


hl.on("hyprland.start", function()
  hl.exec_cmd("xrandr --output DP-3 --primary")
end)

For the fullscreen flicker, run the game inside gamescope, which gives it a fixed, stable output to fullscreen into:


sudo pacman -S --needed gamescope

Then in Steam -> game Properties -> Launch Options (match -W/-H/-r to your actual monitor):


gamescope -f -W 2560 -H 1440 -r 144 -- %command%

Many reports are also fixed by switching the game's compatibility tool to **Proton Experimental** (Properties -> Compatibility -> Force the use of a specific Steam Play compatibility tool), or by using Proton-GE's Wayland driver.

If a game's popups/dropdowns vanish on hover (common with the Steam client itself), pin them with a window rule. Get class/title from sleep 3 && hyprctl clients:

Hyprland <=0.54 / Omarchy 3.x:


windowrule = stayfocused, class:^(steam)$, title:^(Friends List)$

Hyprland 0.55+ / Omarchy 4.x:


hl.window_rule({
    match = { class = "^(steam)$", title = "^(Friends List)$" },
    stay_focused = true
})

Verify

The game enters fullscreen and stays there through an alt-tab cycle, at the correct monitor's native resolution.

Sources

steam-games-xwayland-fullscreen-flicker