You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] mangoapp: overlay window does not resize to Gamescope resolution when horizontal mode is disabled #2153
When running mangoapp with Gamescope on a monitor larger than 1280x800, the overlay window is never resized from its initial 1280x800 fallback size unless horizontal mode is active.
Under Gamescope 3.16.30 (which maps external overlays 1:1 rather than stretching them), any non-horizontal overlay with right/bottom positioning (e.g. position=bottom-right) ends up drawn relative to 1280x800, placing the HUD in the center of a 1440p or 4K monitor.
Linux distribution
CachyOS (Arch-based, rolling)
MangoHud version
v0.8.4 / git master
Version check
I have tested and can reproduce this on latest git.
GPU
AMD Radeon RX 9070 series
GPU driver
Mesa / RADV
MangoHud installation method
Built from source / Arch package
Application installation method
Steam (Native) / Gamescope
Steps to reproduce
Configure MangoHud with position=bottom-right and without horizontal=1 (standard vertical layout or simple FPS counter).
Launch a game through Gamescope at a higher resolution (e.g., -W 2560 -H 1440 -f --mangoapp).
Observe that the HUD is rendered near the center of the display (around coordinate (1280, 800)) instead of the true bottom-right corner.
Expected behavior
mangoapp should resize its GLFW window to match Gamescope's reported outputWidth and outputHeight so that edge and corner positioning aligns with the actual display bounds.
Additional context
The issue appears to originate from commit 33c2c7d ("mangoapp: never adjust window size"):
In src/app/main.cpp, the else branch resizing down to window_size was removed, but the preceding conditional remained:
if (real_params.enabled[OVERLAY_PARAM_ENABLED_horizontal])
glfwSetWindowSize(window, screenWidth, screenHeight);
Because glfwSetWindowSize is inside that if, mangoapp never resizes to (screenWidth, screenHeight) when horizontal is off.
Removing the if (horizontal) check and ensuring glfwSetWindowSize is called whenever screenWidth > 0 && screenHeight > 0 resolves the issue and restores proper positioning on 1440p/4K displays under Gamescope 3.16.30+.
Activity