ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.22k stars 174 forks source link

right click context menu unexpectedly closes itself. #9684

Open Turmfalke2 opened 1 year ago

Turmfalke2 commented 1 year ago

Hi, In the right click context menus of the new steam, if you move your mouse cursor from a nested menu entry back to a normal one the menu flickers out of existence.

If I move the cursor from View Profile screen04 to Trading screen05 and back again the menu disappears.

This is unexpected and inconsistent with right click menus in other programs like my browser here.

Your system information

kisak-valve commented 1 year ago

Hello @Turmfalke2, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report. Also, please check if your desktop environment is configured to use a focus follows mouse setting.

Turmfalke2 commented 1 year ago

Here: https://gist.github.com/Turmfalke2/09809db3b1e4c1afe861af6d7a416f49 It looks smaller than the one from the old client.

The steamwebhelper.log is getting spammed with errors like this:

X Error of failed request:  BadAlloc (insufficient resources for operation)
Major opcode of failed request:  151
Serial number of failed request:  4139
Webhelper: An X Error occurred
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request:  155
Resource id in failed request:  0x2600658
Serial number of failed request:  4140
Webhelper: An X Error occurred
X Error of failed request:  GLXBadPixmap
Major opcode of failed request:  151
Serial number of failed request:  0
Webhelper: An X Error occurred
X Error of failed request:  GLXBadPixmap
Major opcode of failed request:  151
Serial number of failed request:  0
Webhelper: An X Error occurred

but they apparently aren't deadly? Doesn't look great.

Turmfalke2 commented 1 year ago

focus_follows_mouse is false by default, but toggling it to true makes no difference. I don't think the context menu counts as an extra window for the x server.

kisak-valve commented 1 year ago

Could be herbstluftwm specific behavior. It might be interesting to test how Steam behaves with a different window manager.

Turmfalke2 commented 1 year ago

Same behaviour when using xfce4

chaoticsoap commented 1 year ago

Same happening on my end, KDE Plasma, Arch linux

system info from steam

Turmfalke2 commented 1 year ago

@kisak-valve I can also reproduce it on the steam deck when opening steam in desktop mode.

That should make it a bit easier to reproduce for you.

eslowney commented 1 year ago

Same issue. I haven't opened Steam in a month or two, so I just upgraded, and the GUI looks a little different, and a right-click on my Friend's list flickers out, while in the upper left corner of my monitor a window blinks in and out of existence too quickly to see.

I'm using Xubuntu 22.04, so Ubuntu with XFCE.

apocalyptech commented 1 year ago

I hadn't noticed this bug when searching, so I'd created a duplicate of my own. Some notes from my duplicate which haven't been mentioned here, from that bug:

I suspect it might have something to do with the glitchy UIs described in https://github.com/ValveSoftware/steam-for-linux/issues/9614 -- in the second of the videos I posted there, you can see glitchiness out on the lefthand side of the screen when the sub-menus are collapsed, which almost looks like Steam is creating a new window over there. Perhaps that new window is temporarily stealing focus, which makes the context menu lose focus, which triggers the context-close. Here's that video for reference here, too (you may need to watch in 60fps to actually see the glitching): https://www.youtube.com/watch?v=CBA2PBmAq2Y

It's worth noting that this only appears to happen in Small Mode -- when in Large Mode I can get to those menus just fine (though the extremely unpleasant visual glitching is omnipresent no matter what the mode).

Turmfalke2 commented 1 year ago

Appears to be fixed in the steam beta.

Zorrototo commented 1 year ago

This is the same exact behavior on the current BETA for me.

//EDIT: all previous info available in the link above my post

Turmfalke2 commented 1 year ago

Yeah sorry, my bad. You are right. I did my retest with the steam beta using the library menu, the right click context there works.

It's still broken in the friends list.

nPHYN1T3 commented 1 year ago

I am seeing this occasionally and with the Context Menu Compatibility Mode Enabled it's STILL clicking things UNDER the menu's when they don't just vanish on their own.

zealws commented 1 year ago

Same issue on Xorg/Cinnamon/Arch Linux. Here's the system information from steam for my setup.

I upgraded to the steam client beta but the issue was still present in the beta so I went back to the stable client (Steam Version: 1690583737).

In the stable version of the client, enabling Steam > Settings > Interface > Enable context menu focus compatibility mode seemed to help with immediate context menus (e.g. Right click a game, and click "Properties" works now but didn't without that setting enabled) but not for nested menus (e.g. Right click a game, mouse over "Manage" click "Browse local files" does not work). This behavior seemed the same in the current beta version.

On the stable client, changing Window focus mode from Mouse to Click in cinnamon-settings-manager resolved the issue, although I think steam should play nicely with mouse-based focus as I primarily use that. I did not try this on the beta client to know if there's a change in behavior.

Zorrototo commented 12 months ago

The right click menu in, the friend list is absolutely not usable on my side exactly the same as reported before.

pirat89 commented 11 months ago

I see the same behaviour as @zealws described. Enabling of context menu focus compatibility partially resolved the problem.

Root-Core commented 9 months ago

@Zorrototo has posted a nice video in issue #9937 - https://www.youtube.com/watch?v=JTKE3SvoqJM


This is another annoying issue. If you click fast enough, you might manage to join a game. It is a bit embarrassing if you tell your friends to use Linux and you can not even join their game. :/

context menu focus compatibility is not helping at all.

red15 commented 8 months ago

Having the same, not only in beta.

https://gist.github.com/red15/02c7ab18b587c9be4ce1674e2e4759fe

nightsky30 commented 7 months ago

Same here:

Steam Beta: image

Zorrototo commented 7 months ago

I noticed a new thing now on Steam BETA, right click on someone in your friend list, and then hover the menu items back and forth, you'll see some kind of window popping in the top left corner of monitor when the context menu just doesn't crash completely : https://youtu.be/lyvVhosAJ7A

RexSonic commented 7 months ago

I noticed a new thing now on Steam BETA, right click on someone in your friend list, and then hover the menu items back and forth, you'll see some kind of window popping in the top left corner of monitor when the context menu just doesn't crash completely : https://youtu.be/lyvVhosAJ7A

I am having the same issue on arch with kde plasma 5

Conzar commented 7 months ago

I am also having this issue. I tried upgrading to Beta and the issue still remains.

jettorio commented 6 months ago

Same issue here. KDE Plasma 6.0.3-2, Arch, stable steam 1709846872 Was not happening couple updates back

koolg63 commented 6 months ago

Hello, Same issue, lubuntu 22.04.

RoadTrain commented 5 months ago

Same issue here (friends, context menu closing by itself, mini-windows popping in the left top corner). Unable to join games via context menu. Been having it for several weeks at least. Linux Mint 20.3 MATE. Steam Stable 1709846872.

Edit: this is seemingly 'fixed' for me by launching steam with STEAM_DISABLE_BROWSER_SHUTDOWN_WORKAROUND=1 steam (from here: https://github.com/ValveSoftware/steam-for-linux/issues/10758#issuecomment-2037102437). Though now I'm getting steamwebhelper restarts with steam ui relaunching entirely, so not sure about the viability of this approach. I assume that the root causes of these issues are possibly connected.

red15 commented 5 months ago

Edit: this is seemingly 'fixed' for me by launching steam with STEAM_DISABLE_BROWSER_SHUTDOWN_WORKAROUND=1 steam (from here: #10758 (comment)). Though now I'm getting steamwebhelper restarts with steam ui relaunching entirely, so not sure about the viability of this approach. I assume that the root causes of these issues are possibly connected.

For me this workaround means that when having the context menu open for a friend and hovering over a submenu it closes the entire steam UI and the terminal I launched it in spews out lines to show how the whole steamwebhelper.sh got restarted:

steamwebhelper.sh[53865]: === Sat Apr 13 10:33:08 AM CEST 2024 ===
steamwebhelper.sh[53865]: Starting steamwebhelper under bootstrap sniper steam runtime at /home/red15/.local/share/Steam/ubuntu12_64/steam-runtime-sniper
RoadTrain commented 5 months ago

@red15 Yep, I also get these UI restarts, though mainly when closing child windows (like Properties window of a game). Anyway, it's not a viable workaround, so I personally reverted back.

But the flickering was gone, so I figured this information might help eventually fixing the issue.

corigne commented 3 months ago

Any forward action on this? I'm also having this issue on i3 / arch.

jtrees commented 3 months ago

I can't find the source for this right now (a GH user suggested it in another issue), but I was able to fix work around a similar issue on Hyprland with the following window rules:

stayfocused, title:^()$,class:^(steam)$
minsize 1 1, title:^()$,class:^(steam)$
Zorrototo commented 3 months ago

It's a graphical problem, there is some kind of video crash internally in Steam when it happens, unrelated to window rules or what you suggest. It is not a focus or similar issue.

djhnsn commented 2 months ago

Same problem for a long time.

KDE Plasma 6 X11 Nvidia Manjaro Linux 6.6.30

576125176251825152 commented 2 months ago

Same issue here, I have had this issue since steam overhauled the friends list UI AFAIR.

DWM X11 Nvidia Arch Linux 6.10.0-zen1-2-zen

anthraxx commented 3 weeks ago

For anyone who uses XMonad and still experiences this issue, please try the following:

  1. Make sure you are using xmonad-contrib at least version 0.18.1 (not any version before it)
  2. Make sure to use XMonad.Hooks.EwmhDesktops and use minimum ewmh:
    
    import XMonad
    import XMonad.Hooks.EwmhDesktops

main = xmonad $ … . ewmh . … $ def {…}


Optional: Make sure to use `fixSteamFlicker` from `XMonad.Util.Hacks` if you experience flickering:
```haskell
import XMonad.Util.Hacks (fixSteamFlicker)

main = xmonad $ … . ewmhFullscreen . ewmh . … $ def {
        …
        handleEventHook = fixSteamFlicker <+> fullscreenEventHook,
}