flathub / org.yuzu_emu.yuzu

https://flathub.org/apps/details/org.yuzu_emu.yuzu
17 stars 43 forks source link

Ambiguous shortcut detected when pressing F11 (fullscreen) in KDE Plasma #207

Open rscm opened 2 years ago

rscm commented 2 years ago

ref: https://forum.manjaro.org/t/the-key-sequence-is-ambiguous/90803

Screenshot_20211114_092855

After I press "Accept", if I press F11 again it will go to full screen or vice versa

I tried the AppImage version of yuzu, just in case, and worked without any issue. But i want the flatpak version because is easier to maintain updated

I've been searching where all the key are defined in KDE but nothing. There's nothing set up for F11 searching using the settings (gui). Also nothing in .kde4/share/config/kdeglobals

KWin (pantalla completa = full screen) Screenshot_20211118_110816

in yuzu's qt-config

$ cat .var/app/org.yuzu_emu.yuzu/config/yuzu/qt-config.ini | grep F11
Shortcuts\Main%20Window\Fullscreen\KeySeq=F11

tried commenting the line but the file was recreated after open/close it

the only way to disable that key in yuzu's ini was to change the lines from

Shortcuts\Main%20Window\Fullscreen\KeySeq=F11
Shortcuts\Main%20Window\Fullscreen\KeySeq\default=true

to

Shortcuts\Main%20Window\Fullscreen\KeySeq=
Shortcuts\Main%20Window\Fullscreen\KeySeq\default=false

but when I did that I didn't have a key to go full screen of course I could set a different key, but that key should be used to do that


qt-config.ini

...
[UI]
...
Shortcuts\Main%20Window\Exit%20Fullscreen\Context=1
Shortcuts\Main%20Window\Exit%20Fullscreen\Context\default=true
Shortcuts\Main%20Window\Exit%20Fullscreen\KeySeq=Esc
Shortcuts\Main%20Window\Exit%20Fullscreen\KeySeq\default=true 
...
Shortcuts\Main%20Window\Fullscreen\Context=1
Shortcuts\Main%20Window\Fullscreen\Context\default=true
Shortcuts\Main%20Window\Fullscreen\KeySeq=F11
Shortcuts\Main%20Window\Fullscreen\KeySeq\default=true
...

plasmashell --version

plasmashell 5.22.5

kf5-config --version

Qt: 5.15.2
KDE Frameworks: 5.87.0
kf5-config: 1.0

inxi -zSb

System:    Kernel: 5.14.10-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.22.5 Distro: Manjaro Linux
Machine:   Type: Laptop System: LENOVO product: 82B1 v: Lenovo Legion 5 15ARH05H serial: <filter>
           Mobo: LENOVO model: LNVNB161216 v: SDK0R33126 WIN serial: <filter> UEFI: LENOVO v: FSCN14WW
           date: 08/26/2020
Battery:   ID-1: BAT0 charge: 48.3 Wh (59.0%) condition: 81.8/80.0 Wh (102.2%) volts: 15.3 min: 15.4
CPU:       Info: 8-Core AMD Ryzen 7 4800H with Radeon Graphics [MT MCP] speed: 1397 MHz min/max: 1400/2900 MHz
Graphics:  Device-1: NVIDIA TU106M [GeForce RTX 2060 Mobile] driver: nvidia v: 470.63.01
           Device-2: Advanced Micro Devices [AMD/ATI] Renoir driver: amdgpu v: kernel
           Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
           Display: x11 server: X.Org 1.20.13 driver: loaded: amdgpu,ati,nvidia unloaded: modesetting,nouveau
           s-res: 1920x1080
           OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.14.10-1-MANJARO LLVM 12.0.1) v: 4.6 Mesa 21.2.3
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi
Drives:    Local Storage: total: 476.94 GiB used: 181.07 GiB (38.0%)
Info:      Processes: 379 Uptime: 20h 55m Memory: 15.01 GiB used: 5.3 GiB (35.3%) Shell: Bash inxi: 3.3.08

flatpak --version

Flatpak 1.12.1
liushuyu commented 2 years ago

Hmm, very strange. I could even reproduce this issue on the AppImage version of Yuzu.

I will take a look at this, but I suspect this is a KWin bug.

Could you tell me are you using X11 or Wayland? (X11 I suppose?)

rscm commented 2 years ago
$ echo $XDG_SESSION_TYPE
x11
liushuyu commented 2 years ago
$ echo $XDG_SESSION_TYPE
x11

Thank you for your reply! I will take a look at this issue.