Hyprland: Can't interact with certain steam windows

Since the new steam UI rolled out I can’t interact with some windows, mainly the context menu opened by right-clicking someone my friendlist.

Steps to reproduce

  • Open steam
  • Open friendlist
  • Right click someone on friendlist

Expected outcome

I can interact with the opened menu

Actual outcome

Menu can’t be interacted with


I ran a git bisect and the offending commit seems to be https://github.com/hyprwm/Hyprland/commit/fcf1bafb098c8f756550195269dcd95202124277

Had some trouble running the bisect as after the git bisect skip the menus wouldn’t always show up or crash steam.

Bisect log

# bad: [51a930f802c71a0e67f05e7b176ded74e8e95f87] version: bump to 0.26.0
# good: [c02ac5e08a425d5ec44b48e24ca2695d9cafd38d] fix un-normalized missed color
git bisect start 'v0.26.0' 'v0.20.0beta'
# bad: [06244555915339967864292dd0b83cd9732516d8] Meson: add rdynamic ld flag
git bisect bad 06244555915339967864292dd0b83cd9732516d8
# bad: [38c25bb50d76409193db2438db60369f3868edf9] Added a crash reporter
git bisect bad 38c25bb50d76409193db2438db60369f3868edf9
# good: [12e293e3092b03dbb9d82e7a749f482ef2b7ea6e] update animated deco values after setprop
git bisect good 12e293e3092b03dbb9d82e7a749f482ef2b7ea6e
# bad: [be6325dd4b0a99561281ba557f1d37e945fa183f] ext_workspace_unstable: send done after output_enter when wl_output is bound late (#1481)
git bisect bad be6325dd4b0a99561281ba557f1d37e945fa183f
# skip: [5d35c0432b70e2d5e82296caf7f496dc4612f3e5] add a minimize ipc event
git bisect skip 5d35c0432b70e2d5e82296caf7f496dc4612f3e5
# good: [32381fe6c4e33232401d7a74f587ee7296a61fcf] send a 1 on unknown minimize event
git bisect good 32381fe6c4e33232401d7a74f587ee7296a61fcf
# good: [a46abd8b1adaf850e243380ea2a7d6b02677fc86] update wlroots dep
git bisect good a46abd8b1adaf850e243380ea2a7d6b02677fc86
# good: [d81f45e54a423cf3af522ca901a2f356d63100c0] clear focus on failed unlock attempt
git bisect good d81f45e54a423cf3af522ca901a2f356d63100c0
# good: [3e6601fa2989d750135d218c1fea3a13ddeae5c3] ext_workspace_unstable: send output_enter when wl_output is bound late (#1480)
git bisect good 3e6601fa2989d750135d218c1fea3a13ddeae5c3
# good: [668842124067f9b6513edf1c28478bec12d709a0] minor adjustments to xwayland positioning
git bisect good 668842124067f9b6513edf1c28478bec12d709a0
# bad: [fcf1bafb098c8f756550195269dcd95202124277] conform to unmanaged X11 activate requests
git bisect bad fcf1bafb098c8f756550195269dcd95202124277
# first bad commit: [fcf1bafb098c8f756550195269dcd95202124277] conform to unmanaged X11 activate requests

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 14
  • Comments: 56 (30 by maintainers)

Commits related to this issue

Most upvoted comments

Update: don’t use these anymore, they are not needed

If anyone is still having this issue, try adding these lines to your config:

windowrulev2 = stayfocused, title:^()$,class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$

This lets me hover through the drop-down menus in the main UI, as well as the friends list.

All menus in steam are working again and I haven’t had crash while using steam. Can anyone else confirm that it’s working for them? Happy 2 years of Hyprland!!

I am seeing the same thing with the friends list and other places in the steam UI. For example when clicking the “Add a Game” option at the bottom left the context menu is unresponsive. Doesn’t matter if the “context menu focus compatibility mode” option is enabled or not. As mentioned in the above comments, it does work if steam is full-screened.

Is this supposed to fix all menus?

Drop down menus still don’t work for me. Is this actually a Hyprland issue, or is steam doing something it’s not supposed to do? If it’s the latter it’s probably just better to document the workaround somewhere on the wiki, no?

I bisected blurry right click menu, c0d9dcc586ab17bf67c48c02a08bca28727f9237 is what broke it

With the windowrules applied it works perfectly for me on the latest release and git the last time I checked.

With these rules I get a transparent right-click menu:

windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$

Without the rules, the right-click menu immediately dissapears, but is also transparent.

Tried latest git and I get the same behavior. Menus with windowrules worked last time I checked (~2 weeks ago), I can bisect this tomorrow.

If anyone is still having this issue, try adding this line to your config:

windowrulev2 = stayfocused, title:^()$,class:^(steam)$

This lets me hover through most of the drop-down menus in the main UI, but the friends list windows are still borken for me.

UPDATE: Add this line as well to fix friends list:

windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$

Thank you so much!

iirc I tried this on sway originally and there it worked and concluded that it must be specific to Hyprland (and it used to work before the commit I mentioned when I opened the issue)

The issue with the windowrules freezing hyprland was reported 2 weeks ago in my issue #4722, and is most likely fixed in 0.36.0 (though I haven’t tested as it’s not out on Arch yet) as it was fixed in https://github.com/hyprwm/Hyprland/commit/cdcc5aba06f20005842cf966b23af50456dc7142 (which I’m currently using with no issues). Edit: After building 0.36.0 from source, I can confirm it works on 0.36.0 the same as it does on https://github.com/hyprwm/Hyprland/commit/cdcc5aba06f20005842cf966b23af50456dc7142. Anyone having that windowrule issue has to wait for 0.36.0 on their distro or build from source, I suppose.

Huh, focus used to stick to steam, making me unable to interact with any other windows on the workspace but now it works as expected.

I just updated to the latest git and I’m still unable to interact with menus normally. In fact, I can’t interact with my friends at all anymore. My friends list now shows a transparent window that I can interact with, but can’t see what it is that I’m interacting with. If anything, it’s slightly worst now because of that.

Are you still using any window rules? Which version of Hyprland are you on? 2023-12-30_09-19

Same issue for me. Cannot even interact with the top bar menus(Steam, View, Friends etc.). My workaround was to launch steam with gamescope as described here: https://wiki.archlinux.org/title/Gamescope

It’s only possible to set a static resolution for steam app so it’s not perfect(steam subwindows get buggy sometimes)

Upgrading to Hyprland 0.30.0-1 breaks the full screen workaround to use the context menu on the friends list for me. Returning to 0.29.1-1 restored the workaround.

too minor to bother imo

If I remember correctly though in the early days of hyprland steam worked normally without crashes or menus disappearing too fast.

image

what beta ui are yall talkin bout

The drop down menus work for me on git without the windowrules most of the time, however, the “Add a game” button occasionally doesn’t disappear after clicking off of it (I had to click on it and click off of it about 5 times to make it occur), and it causes Steam to freeze for a few seconds, or sometimes it causes the Steam window to close. Other Steam windows (such as settings) also don’t close instantly, instead they go blurry and transparent for a second, or sometimes for longer. Both of these issues occur with and without the windowrules.

The windowrules now freeze hyprland and render it unresponsive whenever hovering on a category like “library” (v0.35)

With the windowrules applied it works perfectly for me on the latest release and git the last time I checked.

With these rules I get a transparent right-click menu:

windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$

Without the rules, the right-click menu immediately dissapears, but is also transparent.