Bug 457258 - Using Chromium with --app mode blocks global shortcuts in Wayland session
Summary: Using Chromium with --app mode blocks global shortcuts in Wayland session
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 5.25.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-29 06:52 UTC by bird_d
Modified: 2022-07-29 07:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bird_d 2022-07-29 06:52:53 UTC
SUMMARY
Using chromium inside kiosk or "app" mode results in blocked global inputs. For example: Alt tabbing, keyboard activated desktop grid or overview, etc. no longer work if the Chromium app mode window is focused.

STEPS TO REPRODUCE
1. run `chromium --app=https://kde.org/ --enable-features=UseOzonePlatform --ozone-platform=wayland` in terminal
2. Try to alt tab, activate overview, open application launcher

OBSERVED RESULT
I am blocked from using global shortcuts.

EXPECTED RESULT
I should never be blocked from accessing shortcuts unless some sort of "permission" is enabled to do so. (say to enable kiosk mode-like behavior.)

Operating System: EndeavourOS
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 1700 Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B79
System Version: 3.0

ADDITIONAL INFORMATION
This used to work previously, I think 5.24 worked fine, but I'm not sure if a change in chromium or kde made this happen. Regardless, chromium shouldn't be allowed to do this without my permission anyways, in my opinion, so this seems more like a kde issue than chromium. Sorry if this doesn't fit.
Comment 1 David Edmundson 2022-07-29 07:22:56 UTC
I can reproduce.

Looking at the log:

[2098256.249] wl_registry@2.global(3, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[2098256.253]  -> wl_registry@2.bind(3, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1, new id [unknown]@5)
[2098414.183]  -> zwp_keyboard_shortcuts_inhibit_manager_v1@5.inhibit_shortcuts(new id zwp_keyboard_shortcuts_inhibitor_v1@34, wl_surface@32, wl_seat@10)

The client explicitly inhibits all shortcuts. 
Kwin is working correctly following this.

Please file a bug with chromium and ask them what on they're doing.

Can you link it here when you've done so.
Comment 2 bird_d 2022-07-29 07:50:16 UTC
I have reported it to Chromium:
https://bugs.chromium.org/p/chromium/issues/detail?id=1348471
Thank you.