Bug 458836 - [Wayland] global shortcuts do not work when a "Chrome app" is active
Summary: [Wayland] global shortcuts do not work when a "Chrome app" is active
Status: RESOLVED DUPLICATE of bug 457049
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.5
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-07 13:27 UTC by Oded Arbel
Modified: 2022-09-07 13:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2022-09-07 13:27:24 UTC
SUMMARY

Running kwin-wayland 4:5.25.5-0ubuntu1 on Kubuntu Kinetic, when a "Chrome app" (a website that was added to "chrome://apps" and then marked with "open as window") is open and active, none of the global shortcuts work - except ALT-F4 to close the window. That includes:
- kwin window management shortcuts (such as window operations menu shortcut or switch to next app)
- other applications global shortcuts (such as spectacle screen capture)

STEPS TO REPRODUCE
1. Start a Wayland plasma session and install Chrome
2. Open a Chrome tab to "chrome://apps"
3. Either add a new app by opening another tab to a website that you want to "applify" and then dragging its "website information" icon (often shown as a lock) to the apps tab, or just use one of the existing pre-installed apps.
4. Right click the app you want to test and choose "Open as window" from the menu.
5. Click the app icon and wait for it to open.
6. try to switch to another app using the keyboard shortcut.

OBSERVED RESULT

Nothing happens

EXPECTED RESULT

Kwin should activate the original Chrome window.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION

When pressing global shortcuts in a "chrome app" window, the user journal has this to say:

----8<----
Sep 07 16:25:59 vesho plasmashell[9328]: [9323:9323:0907/162559.973043:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_translate_keyboard_state: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:25:59 vesho plasmashell[9328]: [9323:9323:0907/162559.973076:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_add_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:25:59 vesho plasmashell[9328]: [9323:9323:0907/162559.973094:ERROR:input_method_context_impl_gtk.cc(122)] Cannot translate a Keyevent to a GdkEvent.
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.196809:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_translate_keyboard_state: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.196824:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_add_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.196833:ERROR:input_method_context_impl_gtk.cc(122)] Cannot translate a Keyevent to a GdkEvent.
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.301176:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_translate_keyboard_state: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.301217:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_add_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.301239:ERROR:input_method_context_impl_gtk.cc(122)] Cannot translate a Keyevent to a GdkEvent.
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.359204:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_translate_keyboard_state: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.359232:ERROR:browser_main_loop.cc(269)] Gdk: gdk_keymap_add_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
Sep 07 16:26:00 vesho plasmashell[9328]: [9323:9323:0907/162600.359249:ERROR:input_method_context_impl_gtk.cc(122)] Cannot translate a Keyevent to a GdkEvent.
----8<----
Comment 1 Oded Arbel 2022-09-07 13:32:39 UTC
My Google Chrome configuration is to use "classic" theme (not GTK+) with "Use system title bar and borders" - not that I think it makes a difference: I tried all other configurations and it behaves the same.
Comment 2 Nicolas Fella 2022-09-07 13:46:05 UTC

*** This bug has been marked as a duplicate of bug 457049 ***