Bug 442226

Summary: [search/replace + Wayland] Strange pop-ups instead of a dropdown menu for completition propositions
Product: [Applications] kate Reporter: geisserml <geisserml>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, geisserml, kde
Priority: NOR Keywords: regression, wayland-only
Version First Reported In: 21.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Pop-up window

Description geisserml 2021-09-09 14:10:43 UTC
Created attachment 141422 [details]
Pop-up window

SUMMARY

When typing in a string into either of the "Search" or "Replace" fields, there are sometimes strange floating windows instead of a dropdown menu for completition propositions.

These windows are rather annoying, because they steal focus from the text input field. Then I usually press <kbd>ESC</kbd> with the intention to get rid of the pop-up, but instead it closes the search/replace plugin...

I think this issue affects Wayland only.

STEPS TO REPRODUCE
1. Open Kate
2. Open the "Search and Replace" plugin
3. Type in a string into the "Search" or "Replace" field
4. Keep editing the text until the bug occurs.

OBSERVED RESULT
Sometimes a separate, centered pop-up window appears instead of a dropdown menu.

EXPECTED RESULT
There should never be pop-ups for this. It should always be a dropdown menu.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-34-generic (64-bit)
Graphics Platform: Wayland
Comment 1 David Edmundson 2021-09-09 14:36:15 UTC
Can you confirm if this is "regression from earlier on wayland" or "regression compared to X11"

>I think this issue affects Wayland only.

It will be.

Code path we're hitting is us telling Qt to open a popup window, no parent being explicitly set, and Qt (for some reason) unable to find one with the fallback heuristic.

A popup with no parent is illegal on wayland, so Qt makes a toplevel window with decorations as a fallback.
Comment 2 geisserml 2021-09-09 15:36:17 UTC
It is "regression from earlier on wayland".
Comment 3 Christoph Cullmann 2021-10-09 19:37:05 UTC
Hmm, that is a normal QComboBox with completion.
Comment 4 geisserml 2021-10-09 19:55:35 UTC
I think this is perhaps rather an issue with Qt(-Wayland) than with Kate
--
A question: Is it possible to deactivate completition, or dismiss the completition history as a workaround?
Comment 5 Christoph Cullmann 2022-10-28 19:30:33 UTC
Please try a more recent version, I use Wayland now since months and have not seen this.
I think the is no general switch to turn all this stuff of, if comboboxes fail to work, something is very broken.
Comment 6 geisserml 2022-10-29 11:35:16 UTC
(In reply to Christoph Cullmann from comment #5)
> Please try a more recent version, I use Wayland now since months and have
> not seen this.
> I think the is no general switch to turn all this stuff of, if comboboxes
> fail to work, something is very broken.

You're right, that bug is gone, and I had almost forgotten about this report.
I don't remember if it had already disappeared while I was still using kde neon, or if it was only since I switched to opensuse.