ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.18k stars 214 forks source link

F key toggles fullscreen mode #1637

Open OlegAckbar opened 2 days ago

OlegAckbar commented 2 days ago

Is there an existing issue for this?

Are you using any gamescope patches or a forked version of gamescope?

Current Behavior

When I press F games in with "exclusive fullscreen" mode gamescope toggles its fullscreen mode. Just F without any modifiers.

Steps To Reproduce

  1. Launch any games that use exclusive fullscreen
  2. Press F
  3. Gamescope will turn to window mode instead of being fullscreen. No modifiers are used.

Hardware information

Operating System: Arch Linux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.1-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 15.6 ГиБ of RAM
Graphics Processor: AMD Radeon RX 6700 XT

Software information

- Gamescope version: 3.15.9.r22.g37a348be-1
- Gamescope launch command(s): `gamescope --mangoapp --hdr-enabled -w 2560 -h 1440 -W 2560 -H 1440 -f --force-grab-cursor --`

Which gamescope backends have the issue you are reporting?

Logging, screenshots, or anything else

No response

matte-schwartz commented 2 days ago

Someone reported this for Stalker 2 but it worked on my machine when I tried to get it to happen. does it happen in any other particular games?

OlegAckbar commented 2 days ago

I also had this problem in Stalker 2, but now I can't reproduce it. This also was happening in Deus Ex: Revision. I guess it only happens under some condition which is yet to be found.

OlegAckbar commented 2 days ago

Someone encountered same problem on reddit: https://www.reddit.com/r/linux_gaming/comments/1gxn5fr/wine_wayland_woes/

NoXPhasma commented 1 day ago

This seems to be related to the numpad. When I turn off the numpad, the F key won't toggle fullscreen anymore.

byndthgrve commented 1 day ago

Turning off num-lock also solved the issue for me as well. While running gamescope and num-lock enabled, the "F" key would toggle fullscreen. I also had other keys that would be unusable such as "S" and "O". If not using gamescope and num-lock was enabled. All keys worked normally.

matte-schwartz commented 10 hours ago

Is everyone experiencing this using Plasma, or has it happened to anyone on other DEs as well?

byndthgrve commented 9 hours ago

I'm on Plasma 6.2.3.

matte-schwartz commented 9 hours ago

I'm on Plasma 6.2.3 on Arch and have run into the issue as well.

Initially I was trying to look for some trigger for it happening, like launching gamescope from the Steam launch options or some other program interfering, but I had it happen immediately after a reboot without Steam autostarting, simply with gamescope -f -- vkcube. I rebooted again to see if I could still reproduce the issue afterwards, but on that boot cycle the hotkeys were working perfectly again under identical circumstances.

Unless I hear otherwise, it makes me wonder if we're hitting a bug somewhere else in Plasma that's being expressed by gamescope's hotkey usage tbh. Probably won't have time to look into it myself for a few days but I do think getting some input logs out of KDE would be good to see if they line up with what I see in Gamescope when I add logging for when various "Meta + [x]" functions get called within gamescope.

EDIT: interesting... libinput debug-events look identical for when it's working correctly and not correctly