Summary: | Sometimes widgets activated by a global shortcut stop receiving the shortcut until plasmashell is restarted | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Adam Fontenot <adam.m.fontenot+kde> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | akselmo, kde, kde, nate, o.rootedavid.o |
Priority: | NOR | Keywords: | qt6 |
Version: | 5.90.0 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/libplasma/-/commit/27b4578ede769980145774e2f03d4ba970dc1c73 | Version Fixed In: | 6.0 |
Description
Adam Fontenot
2023-12-07 05:08:16 UTC
FWIW I've got a Notes widget in my panel that I activate with Meta+N and I've never had this happen in Plasma 6. When this happens, does restarting plasmashell help? How about restarting KWin? > does restarting plasmashell help Yes, this is buried in my "observed result" section: > `pkill -9 plasmashell` does not immediately fix the problem (plasmashell is > automatically restarted), but upon opening the Search widget settings, no > keyboard shortcut is set. Setting the keyboard shortcut to the Menu key fixes > the problem. Thanks, sorry I missed that. I fixed very similar bug recently for Plasma 6: https://invent.kde.org/plasma/libplasma/-/merge_requests/987 Have you encountered this again? Currently trying to reproduce the issue. Does this only happen after editing a panel? Seems for me, the panel focus stops working after toggling the edit mode. I think I figured out how to reproduce this. 1. Set up your computer to automatically switch to an external monitor when it is connected. (Single screen mode - the existing screen should turn off automatically.) 2. Set up a global shortcut on a panel widget and check that it is working on your main screen. 3. Plug in the other screen. 4. Try the shortcut again. This breaks the global shortcut for me. Restarting plasmashell using any method (while leaving the screen plugged in) fixes it. Once it has been fixed, *unplugging* the screen, which moves the panel back to the first screen, breaks it on that screen. Plugging the external screen back in (without restarting plasmashell) gets it to work on the external screen without further intervention. So the global shortcut only works for me on the screen that my panel starts on. Two quick clarifications: > Does this only happen after editing a panel? No, it happens regardless of whether I have edited a panel since the last reboot. > does restarting plasmashell help I initially said the answer to this is "no, but it allows you to set the shortcut again". I actually think it does, now. It appears that if you immediately restart plasmashell when you notice the problem, it fixes it. If instead you start tinkering with the shortcut settings on the widget, the "new" shortcut you set will fail to take effect, and so when you restart plasmashell *after* that the shortcut disappears. (It's also possible I screwed up the initial test and removed the shortcut before restarting plasmashell.) Managed to reproduce this, however unsure if this is the only cause. 1. Let your PC go to screen-blanking mode (screen turns black) 2. Wait a few seconds 3. Shake mouse to wake up screen 4. Shortcuts do not work anymore, until focused again by clicking with mouse To me seems the problem is with the screen going black and something pausing during it. Okay I got the bug now, but I have no idea why it happens. If I press Meta+S to toggle the search widget, instead of search opening, my cursor turns into the resize horizontally icon. Super weird, will try to investigate. But it started only after the screen blanking: I have been trying to repro this bug the whole week and only after screen blanking it happens. (In reply to Akseli Lahtinen from comment #9) > Okay I got the bug now, but I have no idea why it happens. > > If I press Meta+S to toggle the search widget, instead of search opening, my > cursor turns into the resize horizontally icon. Super weird, will try to > investigate. But it started only after the screen blanking: I have been > trying to repro this bug the whole week and only after screen blanking it > happens. To add, restarting plasmashell fixed this. Seems the shortcut can't connect to the assigned window ID: Dec 19 10:50:34 fedora-desktop kwin_wayland[111261]: kwin_core: Could not find window with uuid "{210136f9-bdb6-439f-9f02-f031900489b0} To summarise: 1. set shortcut to any plasmawidget like weather, calendar, etc.. any widget inside panel 2. let powersaving turn screen 3. wait couple minutes 4. shake mouse but dont click anything 5. try to open the widget with the shortcut 6. nothing happens 7. journalctl screams something like kwin_core: Could not find window with uuid "{210136f9-bdb6-439f-9f02-f031900489b0} Seems when screen is turned off, the window uuid is forgotten? seems when screen is turned off, the window uuid's are forgotten? A possibly relevant merge request was started @ https://invent.kde.org/plasma/libplasma/-/merge_requests/1019 Git commit 27b4578ede769980145774e2f03d4ba970dc1c73 by Akseli Lahtinen. Committed on 19/12/2023 at 13:05. Pushed by akselmo into branch 'master'. AppletQuickItem: Return in itemchange if already initialized M +3 -2 src/plasmaquick/appletquickitem.cpp https://invent.kde.org/plasma/libplasma/-/commit/27b4578ede769980145774e2f03d4ba970dc1c73 Confirming this fixes the issue as I experienced it with monitor switching as well. (I was never able to reproduce the problem when power saving turned off the screen.) Hello! Does this fix 418288 (403636?)? I've been having issues with media keys stopping working seemingly randomly (5.27.10 Wayland at time of writing). Or is the Media Controller handled differently? Thank you. |