steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

right click context menu unexpectedly closes itself.

Open Turmfalke2 opened this issue 2 years ago • 37 comments

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

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

  • Distribution (e.g. Ubuntu): Gentoo

  • Opted into Steam client beta?: No

  • Have you checked for system updates?: Yes

  • Steam Logs: [generate by running this command in a terminal tar -zcvf ~/Desktop/steam-logs.tar.gz ~/.steam/steam/logs] steam-logs.tar.gz

  • GPU: Nvidia

Turmfalke2 avatar Jun 20 '23 18:06 Turmfalke2

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.

kisak-valve avatar Jun 20 '23 18:06 kisak-valve

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 avatar Jun 20 '23 19:06 Turmfalke2

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.

Turmfalke2 avatar Jun 20 '23 19:06 Turmfalke2

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

kisak-valve avatar Jun 20 '23 19:06 kisak-valve

Same behaviour when using xfce4

Turmfalke2 avatar Jun 20 '23 19:06 Turmfalke2

Same happening on my end, KDE Plasma, Arch linux

system info from steam

chaoticsoap avatar Jun 22 '23 07:06 chaoticsoap

@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.

Turmfalke2 avatar Jun 22 '23 18:06 Turmfalke2

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.

eslowney avatar Jun 23 '23 04:06 eslowney

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).

apocalyptech avatar Jun 26 '23 13:06 apocalyptech

~~Appears to be fixed in the steam beta.~~

Turmfalke2 avatar Jul 30 '23 10:07 Turmfalke2

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

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

Zorrototo avatar Aug 01 '23 17:08 Zorrototo

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.

Turmfalke2 avatar Aug 02 '23 13:08 Turmfalke2

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.

nPHYN1T3 avatar Aug 03 '23 18:08 nPHYN1T3

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.

zealws avatar Aug 18 '23 01:08 zealws

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

Zorrototo avatar Oct 05 '23 17:10 Zorrototo

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

  • Fedora 38,
  • X.org,
  • steam version: 1696019606

pirat89 avatar Oct 09 '23 19:10 pirat89

@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.

  • Manjaro 23.1.1
  • Linux 6.6.8-2-MANJARO
  • KDE 5.27.10
  • Wayland

Root-Core avatar Dec 28 '23 01:12 Root-Core

Having the same, not only in beta.

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

red15 avatar Jan 27 '24 16:01 red15

Same here:

  • Xubuntu 23.10
  • Xfce 4.18, Xfwm4
  • System Information: Gist

Steam Beta: image

nightsky30 avatar Feb 11 '24 16:02 nightsky30

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

Zorrototo avatar Feb 11 '24 16:02 Zorrototo

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

RexSonic avatar Feb 23 '24 22:02 RexSonic

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

Conzar avatar Feb 25 '24 07:02 Conzar

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

jettorio avatar Mar 30 '24 16:03 jettorio

Hello, Same issue, lubuntu 22.04.

koolg63 avatar Apr 02 '24 20:04 koolg63

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.

RoadTrain avatar Apr 11 '24 00:04 RoadTrain

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

red15 avatar Apr 13 '24 08:04 red15

@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.

RoadTrain avatar Apr 14 '24 20:04 RoadTrain

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

corigne avatar Jun 11 '24 01:06 corigne

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)$

jtrees avatar Jun 11 '24 07:06 jtrees

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.

Zorrototo avatar Jun 11 '24 09:06 Zorrototo