Bug 442553 - After login entry method / virtual keyboard widget is opened in the wrong place and lacks icon
Summary: After login entry method / virtual keyboard widget is opened in the wrong pla...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Input Method (show other bugs)
Version: 5.22.90
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-09-16 18:49 UTC by Thiago Sueto
Modified: 2022-09-08 16:31 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.24


Attachments
Widget in wrong place (1.80 MB, image/png)
2021-09-16 18:49 UTC, Thiago Sueto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Sueto 2021-09-16 18:49:08 UTC
Created attachment 141612 [details]
Widget in wrong place

Screenshot should be self-explanatory.

This only happens if the widget is shown by default. It works as expected if it's hidden.

After clicking the arrow for it to close, it keeps not showing up any icon on the tray. If you open it again, the same window shows up, but on the right place.
Comment 1 Nate Graham 2021-09-21 23:16:36 UTC
To confirm: this happens when you make the "Input Method" item be "Always shown?" Or some other condition?

Also I thought we fixed this recently. what version of Plasma are you using?
Comment 2 Thiago Sueto 2021-09-22 04:45:42 UTC
To clarify things: I meant that it only occurs when either "Shown when relevant" or "Always shown" are set. It doesn't happen when the widget is inside the tray.

I accidentally misnamed input method as entry method, please disregard that. If you see the screenshot (sorry for its size lol) it's called "Método de entrada", portuguese for "Input method".

I could not find the means to reproduce it reliably. Sometimes it just logins that way, sometimes not.

I'm on git master, as mentioned in the Version field.

My findings:

* It isn't cache, because rm -rf ~/.cache doesn't change anything.
* It isn't caused by panel size, it doesn't matter if it's 40 or 80 px.
* It isn't caused by scaling, it doesn't matter if it's 100% or 125%.
* Session restore has no bearing on this, because I disabled that functionality.
* It is definitely something that only happens on master (Krypton), not on 5.22.5 (Tumbleweed), I went back and forth between versions to confirm this. So it seems like a regression.
* Noticed it has two settings icons, the first opens the virtual keyboard settings, the latter opens the entry method settings. So it's as if both widgets are being opened at the same time.
* Clicking on the icon makes it act exactly like the virtual keyboard would on the panel.

I'm kind of at a loss to debug this, to be fair. I also couldn't find any workaround.

Nate, could you mention the bug report of the fixed thingie?
Comment 3 Nate Graham 2021-09-22 15:19:24 UTC
See https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1007#note_290318. You can see that your screenshot exactly matches the screenshot I posted in that comment, because I found these issues too. However they were supposed to have been fixed before branching nearly a month ago with https://invent.kde.org/plasma/plasma-workspace/-/commit/7e2531f33df8ebaf80a1b5ad11ea143c629dfbc1. And I can confirm that it's fixed in the way I expect for me. 

You're using git master, right? Did you compile everything yourself, or are you using Neon Unstable? If the latter, I wonder if somehow the plasma-workspace package is stuck at an old version or something.
Comment 4 Thiago Sueto 2021-09-23 04:44:34 UTC
I'm using precompiled git master on openSUSE Krypton, not self-compiled Plasma.

The precise version of plasma5-workspace is 5.23.80git.20210920T203512~33c492951-ku.2.1, so I assume it's not an old version.
Comment 5 Nate Graham 2021-09-23 13:01:55 UTC
I can't explain that :(
Comment 6 Fabian Vogt 2021-09-23 14:18:49 UTC
Is a new user affected as well? If not, it might be due to some weird .config/ setting which is stuck.
Comment 7 Thiago Sueto 2021-09-25 01:39:15 UTC
Ok, I did a fuckton of testing by moving config files and I managed to isolate the issue by comparing to a new user, and figured out a way to reproduce. Kinda surprising actually. It's the scaleIconsToFit=true in plasma-org.kde.plasma.desktop-appletsrc when you have the virtual keyboard enabled.

* Create a new user and log in
* Enable the virtual keyboard Maliit in the KCM
* Edit the tray to Scale with panel height
* Relogin

This should consistently reproduce the issue. You can rm -rf .config/ and repeat the steps to confirm its reproducibility. Please confirm whether this is reproducible for you.
Comment 8 Thiago Sueto 2021-09-26 18:51:37 UTC
I just checked and it's reproducible with Krypton's live image as well.
Comment 9 Nate Graham 2021-09-27 17:14:55 UTC
Hmm, I use that setting myself, and I still cannot reproduce it with either a horizontal or vertical panel and the widget set to "Shown when relevant"

Have not tried with another user account.
Comment 10 kelnio@yahoo.com 2021-10-21 21:04:48 UTC
(In reply to Thiago Sueto from comment #7)
> Ok, I did a fuckton of testing by moving config files and I managed to
> isolate the issue by comparing to a new user, and figured out a way to
> reproduce. Kinda surprising actually. It's the scaleIconsToFit=true in
> plasma-org.kde.plasma.desktop-appletsrc when you have the virtual keyboard
> enabled.
> 
> * Create a new user and log in
> * Enable the virtual keyboard Maliit in the KCM
> * Edit the tray to Scale with panel height
> * Relogin
> 
> This should consistently reproduce the issue. You can rm -rf .config/ and
> repeat the steps to confirm its reproducibility. Please confirm whether this
> is reproducible for you.

I'm having the exact same issue on my Surface Pro 4 running Endeavor OS, Plasma Version 5.23.1, Frameworks Version 5.87.0, Qt Version 5.15.2. If I set the Panel icon size to "Scale with Panel height," then restart the Plasmashell, the Input Method widget will open on the screen, and the entry in the panel will be missing its icon. I can also not enable/disable the virtual keyboard from the missing icon. Setting the Panel icon size back to "Small" and restarting the Plasmashell returns everything to normal.
Comment 11 Nate Graham 2022-09-08 16:31:00 UTC
This was fixed in 5.24 or 5.25 IIRC.