Bug 446443 - Search field in overview activated via Meta key doesn't have focus by default, so it sometimes hangs when typing immediately after activation
Summary: Search field in overview activated via Meta key doesn't have focus by default...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 451372 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-03 20:20 UTC by Thiago Sueto
Modified: 2022-09-10 12:07 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Sueto 2021-12-03 20:20:07 UTC
SUMMARY
I made the effect run upon pressing Meta with kwriteconfig5 --file kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/kwin,,invokeShortcut,Overview".

When running it this way, the search field doesn't get focus by default. I assume this is what causes the search to hang for a split second before getting focus, so if I type immediately after enabling the effect, sometimes one letter gets repeated, kinda similar to a longstanding KRunner bug that was long fixed already.

Interestingly enough, this is the case when the overview gets activated via the default keyboard shortcut too. The difference is that the search field gets focus immediately after either Ctrl or Alt is released, so the hang doesn't manifest.

STEPS TO REPRODUCE
1. kwriteconfig5 --file kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/kwin,,invokeShortcut,Overview"
2. qdbus-qt5 org.kde.KWin /KWin reconfigure (might be just qdbus depending on distro)
3. Press Meta
4. Immediately type something (e.g. Firefox)
Comment 1 Nate Graham 2022-03-25 03:42:45 UTC
*** Bug 451372 has been marked as a duplicate of this bug. ***
Comment 2 Nataniel 2022-06-26 08:26:23 UTC
I'm having the same problem: I attached the meta key to the overview with this command:
$ kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.kglobalaccel,/component/kwin,org.kde.kglobalaccel.Component,invokeShortcut,Overview"
$ qdbus org.kde.KWin /KWin reconfigure

However, the first letter gets repeated only the first time I use the overview search field after booting. The following searches work just fine.
Comment 3 Nate Graham 2022-06-27 15:54:57 UTC
What Plasma version are you using?
Comment 4 Nataniel 2022-06-28 08:10:53 UTC
(In reply to Nate Graham from comment #3)
> What Plasma version are you using?

Hey, here's all my info:

Operating System: Manjaro Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Kernel Version: 5.15.49-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-3840QM CPU @ 2.80GHz
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Comment 5 Nate Graham 2022-06-28 15:53:11 UTC
Ok. We fixed a lot of focus-related things in recently. Can you try again with Plasma 5.25.2 (which was just released today)?
Comment 6 Nataniel 2022-06-29 18:07:06 UTC
(In reply to Nate Graham from comment #5)
> Ok. We fixed a lot of focus-related things in recently. Can you try again
> with Plasma 5.25.2 (which was just released today)?

I'll wait for Manjaro to push 5.25 (.3 I guess), I don't have time and energy right now to fire up 25.2 ;) Thank you for the answer
Comment 7 Bug Janitor Service 2022-07-14 04:37:04 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2022-07-29 04:35:55 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 9 cprog 2022-08-07 02:48:30 UTC
(In reply to Nate Graham from comment #5)
> Ok. We fixed a lot of focus-related things in recently. Can you try again
> with Plasma 5.25.2 (which was just released today)?

I'm using Plasma 5.25.4 and still have the same problem. Here is my setup:

Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.16-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7300HQ CPU @ 2.50GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630