protonscr

Steam windows randomly open with minimal sizes making them virtually invisible on Hyprland

steamclosed Steam clientWindow managerDistro Family: Arch
ValveSoftware/steam-for-linux#10706 · opened 2024-03-29 by lucasreis1 · updated 2024-06-20 · 2 comments · github
Llucasreis1 2024-03-29 github

Your system information

  • Steam client version (build number or date): 1711572213

  • Distribution (e.g. Ubuntu): Arch Linux

  • Opted into Steam client beta?: Yes

  • Have you checked for system updates?: Yes

  • Steam Logs: steam-logs.tar.gz

  • GPU: Nvidia 3070

Please describe your issue in as much detail as possible:

Running Steam on Hyprland makes some windows simply disappear. Further investigation shows that the windows are drawn with minimal sizes which makes them virtually invisible.

https://github.com/ValveSoftware/steam-for-linux/assets/24644129/52a3b7ed-8693-45ef-be71-9db827b304b7

ffl is an alias for a script that looks for the friends list window and changes its size accordingly, something I had to do to make Steam usable again.

I've looked into the code and this does not seem to be Hyprland's fault, as the listener responsible for configuring XWayland windows is just obeying the client's desire to be spawned in that size.

Here's some logs from Hyprland to help visualize what is happening when the Steam client asks the specific window to be rendered:

[LOG] [15:21:40.526455564] Map request dispatched, monitor WL-1, window pos: [847.00000, 295.00000], window size: [226.00000, 400.00000], name: Friends List
[LOG] [15:21:40.526627235] Searching for matching rules for steam (title: Steam)
[LOG] [15:21:40.527211949] Searching for matching rules for steam (title: Friends List)
[LOG] [15:21:40.527487405] Window rule float ->  class: ^(steam)$, title:^(?!Steam).*$ matched [Window 5620ace1faf0: title: "Friends List"]
[wlr] [xwayland/xwm.c:1628] xcb error: op ConfigureWindow (no minor), code Value (no extension), sequence 3667, value 0
[LOG] [15:21:40.528374954] Searching for matching rules for steam (title: Friends List)
[LOG] [15:21:40.528674924] Window rule float ->  class: ^(steam)$, title:^(?!Steam).*$ matched [Window 5620ace1faf0: title: "Friends List"]
[LOG] [15:21:40.529150336] Set keyboard focus to surface 5620acda8be0, with [Window 5620acdd6880: title: "Steam"]
[LOG] [15:21:40.529229886] Searching for matching rules for steam (title: Steam)
[LOG] [15:21:40.533541006] cursorImage request: surface 5620acd43300
[LOG] [15:21:40.534002240] cursorImage request: surface 5620acd43300
[LOG] [15:21:40.535083809] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 5, y: 5] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.535487355] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.535812887] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.536127943] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.536431754] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.536745902] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.537052438] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.537342001] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.537623533] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.537897033] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 1548, y: 505]
[LOG] [15:21:40.538170953] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 226, y: 400] at position [Vector2D: x: 957, y: 492]
[LOG] [15:21:40.538437259] Configuring XWayland window [Window 5620ace1faf0: title: "Friends List"] with requested size: [Vector2D: x: 5, y: 5] at position [Vector2D: x: 957, y: 492]

Steps for reproducing this issue:

  1. Open Steam
  2. Open and close the friends list until it can't be seen anymore
Llucasreis1 2024-05-31 github

Looks like the new beta makes some changes and almost got rid of the bug entirely. It's harder to replicate the issue now, but I can still do it by spamming opening/closing the friends list panel.

Llucasreis1 2024-06-20 github

Newest hyprland + steam beta seems to fix this entirely. I can't reproduce it even after trying my best for 5 consecutive minutes of openning/closing the friend's list. Thanks to whoever looked into this!

Nothing extracted yet.