Bug 435690 - [Wayland] Kickoff, Krunner, and other applets open in the wrong place
Summary: [Wayland] Kickoff, Krunner, and other applets open in the wrong place
Status: RESOLVED DUPLICATE of bug 459188
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.21.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: wayland
: 433607 436067 436124 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-13 13:35 UTC by Joe Cardenas
Modified: 2022-10-11 16:14 UTC (History)
20 users (show)

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


Attachments
Kickoff Issue (1.25 MB, image/png)
2021-04-13 13:39 UTC, Joe Cardenas
Details
Krunner issue (1.09 MB, image/png)
2021-04-13 13:40 UTC, Joe Cardenas
Details
System Tray issue (1.18 MB, image/png)
2021-04-13 13:40 UTC, Joe Cardenas
Details
WAYLAND_DEBUG=1 krunner --replace (57.71 KB, text/plain)
2021-04-13 21:14 UTC, Joe Cardenas
Details
Screenshot showing that the kickoff menu can occasionally still appear on the wrong position (692.24 KB, image/png)
2022-07-28 14:36 UTC, lrdarknesss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Cardenas 2021-04-13 13:35:32 UTC
SUMMARY
Kickoff, KRunner, System Tray, etc. all open in incorrect positions. System tray and Kickoff open on the bottom center of the screen, while Krunner opens in the top right.

STEPS TO REPRODUCE
1. Update to the most recent build (4/13/21)
2. Press the meta key to open Kickoff.

OBSERVED RESULT
Kickoff opens in the bottom center of the screen and shows an icon on the task bar.

EXPECTED RESULT
Kickoff opens in the bottom right of the screen and shows no icon on the task bar.

SOFTWARE/OS VERSIONS
KDE Neon: 5.21 User Edition
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.12.2

HARDWARE:
Processor: i3-1005G1
GPU: Integrated

ADDITIONAL INFO:
Screenshots are on the way. Also, I wasn't sure what component this should be labelled as, so it is under "general".
Comment 1 Joe Cardenas 2021-04-13 13:39:52 UTC
Created attachment 137560 [details]
Kickoff Issue
Comment 2 Joe Cardenas 2021-04-13 13:40:09 UTC
Created attachment 137561 [details]
Krunner issue
Comment 3 Joe Cardenas 2021-04-13 13:40:22 UTC
Created attachment 137562 [details]
System Tray issue
Comment 4 geisserml 2021-04-13 19:27:54 UTC
Yes, I can confirm this issue (also Neon user). It started to happen after the updates from yesterday and affect only Wayland.
Comment 5 geisserml 2021-04-13 19:55:33 UTC
* affects
Comment 6 David Edmundson 2021-04-13 20:20:56 UTC
Please run WAYLAND_DEBUG=1 krunner --replace and attach output

also confirm that kwayland-integration is installed
Comment 7 Joe Cardenas 2021-04-13 21:13:45 UTC
Current kwayland-integration version is: 
4:5.21.4-0xneon+20.04+focal+release+build26

I am attaching the output of "WAYLAND_DEBUG=1 krunner --replace".
Comment 8 Joe Cardenas 2021-04-13 21:14:21 UTC
Created attachment 137569 [details]
WAYLAND_DEBUG=1 krunner --replace
Comment 9 Joe Cardenas 2021-04-13 21:15:21 UTC
The output was gathered after running the command, waiting a few seconds, then clicking out of krunner and terminating the process via ctrl+c.
Comment 10 Nate Graham 2021-04-13 22:11:23 UTC
Odd. Cannot reproduce. What window placement mode are you using? Are you using scaling of any sort?
Comment 11 Joe Cardenas 2021-04-14 00:23:29 UTC
My scale is 100%. Most of my settings are default, and even after resetting some settings relating to window management, the issue still occurred. 

Are you completely up to date? Because this issue started after doing some system updates this morning. Also, in case you did it without offline updates, you may want to try restarting to imitate the offline updates feature.
Comment 12 geisserml 2021-04-14 08:59:25 UTC
(In reply to Nate Graham from comment #10)
> Odd. Cannot reproduce. What window placement mode are you using? Are you
> using scaling of any sort?

My window placement is 'centered'. However I tried multiple other options, but it doesn't seem to have any effect on this problem. I don't have scaling enabled either. The only exceptional point at my setup is the 5:4 monitor, but this probably doesn't matter.
Are you using exactly the same Plasma version as Joe and me?
Comment 13 geisserml 2021-04-14 09:02:52 UTC
(In reply to Manuel Geißer from comment #12)
> but it doesn't seem to have any effect on this problem

For completeness: It does change the position where KRunner shows up, but there is no difference for the system tray applets
Comment 14 Joe Cardenas 2021-04-14 12:12:16 UTC
It might be useful to say I also have a non-standard aspect ratio for my display: 16:10. 

Also, changing window placement from "Minimal Overlapping", it did have some effect on the way Kickoff/Krunner were shown, however, none of the options set Kickoff/Krunner placement back to normal.
Comment 15 David Edmundson 2021-04-14 13:13:26 UTC
Trace was interesting but somehow even more confusing.

We do have an org_kde_plasma_surface but it never sets the position
Comment 16 geisserml 2021-04-16 18:59:38 UTC
I don't know whether that's relevant, but if I open kickoff or any tray application, I always get something similar the following two warnings in the system log:
```
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
kf.plasma.quick: Couldn't create KWindowShadow for PlasmaQuick::Dialog_QML_219(0x55cdb09f7900, name="popupWindow")
```
Is that normal or might it be related to this issue?
Comment 17 MK 2021-04-21 12:45:19 UTC
Same here!

Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-72-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 7.1 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Comment 18 Joe Cardenas 2021-04-21 16:19:07 UTC
Antanicus, this bug is relating to the incorrect placement of windows on Wayland, but your "Graphics Platform" is X11. Is this information incorrect, or have you managed to reproduce the bug on X11? Additionally, what is the resolution of your display?

Also, Manuel, can you paste your system information? Both me and Antanicus are running Mesa Intel drivers, so it's theoretically possible that could be part of the problem.
Comment 19 geisserml 2021-04-21 20:21:31 UTC
(In reply to Joe Cardenas from comment #18)
> Also, Manuel, can you paste your system information? Both me and Antanicus
> are running Mesa Intel drivers, so it's theoretically possible that could be
> part of the problem.
Sure:
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-72-generic
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 7.2 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000

As you can see, I'm on Meas Intel, too (though I believe it's rather unlikely this issue is related to specific graphics cards/drivers, but I don't know)

Also, I am using OpenGL 3.1 compositing instead of the default XRender, in case that matters, and my scaling method is 'smooth'.
Comment 20 geisserml 2021-04-21 20:22:53 UTC
(In reply to Joe Cardenas from comment #18)
> Antanicus, this bug is relating to the incorrect placement of windows on
> Wayland, but your "Graphics Platform" is X11. Is this information incorrect,
> or have you managed to reproduce the bug on X11?
Maybe Antanicus was on Wayland, but then resorted back to X because of this bug?
Comment 21 geisserml 2021-04-21 20:24:13 UTC
* Mesa (sorry, I'm making typos all the time)
Comment 22 MK 2021-04-22 08:03:16 UTC
(In reply to Joe Cardenas from comment #18)
> Antanicus, this bug is relating to the incorrect placement of windows on
> Wayland, but your "Graphics Platform" is X11. Is this information incorrect,
> or have you managed to reproduce the bug on X11? Additionally, what is the
> resolution of your display?
> 
> Also, Manuel, can you paste your system information? Both me and Antanicus
> are running Mesa Intel drivers, so it's theoretically possible that could be
> part of the problem.

Apologies for the confusion, I switched sessions before reporting the bug. 
My screen resolution is 1920*1080 but I'm using a 125% scaling factor.
Comment 23 kinghat 2021-04-22 23:33:16 UTC
my krunner is also all over the place when my window behavior -> window placement is set to "minimal overlapping". its never the options set in the krunner settings of top or centered. if i set my window placement to "centered" i can get krunner to center.

Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.8.0-50-generic
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-5600U CPU @ 2.60GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500
Comment 24 Nate Graham 2021-04-22 23:46:01 UTC
Just saw this in action with my Plasma 5.21.4 Wayland session in Neon User Edition. Cannot reproduce in git master on Tumbleweed though.
Comment 25 geisserml 2021-04-23 14:55:06 UTC
So this means we can expect the bug to be already fixed in newer version of Plasma?
Comment 26 Nate Graham 2021-04-23 15:31:35 UTC
*** Bug 436067 has been marked as a duplicate of this bug. ***
Comment 27 Nate Graham 2021-04-23 15:34:47 UTC
Maybe? Need to verify.
Comment 28 Nate Graham 2021-04-23 20:13:34 UTC
Yeah I cannot reproduce this under any circumstances with my git master Wayland session, but I can 100% with my Plasma 5.21.4 Wayland session. So I guess this is fixed in 5.22.
Comment 29 Joe Cardenas 2021-04-24 02:02:56 UTC
Sounds great, Nate. When 5.22 Beta starts, I’ll check back and update this bug accordingly. If anyone has any more updates then feel free to update the bug!
Comment 30 Joe Cardenas 2021-04-24 03:14:28 UTC
Also, I can confirm this is fixed as of the latest KDE Neon Testing version. Thanks for all the help to everyone who pitched in on this!
Comment 31 Nate Graham 2021-04-28 14:59:51 UTC
*** Bug 433607 has been marked as a duplicate of this bug. ***
Comment 32 geisserml 2021-05-12 11:51:51 UTC
Today's update to 5.21.5 fixed the issue in neon user. Thanks!
Comment 33 Patrick Silva 2021-05-14 18:19:15 UTC
*** Bug 436124 has been marked as a duplicate of this bug. ***
Comment 34 lrdarknesss 2022-07-28 14:34:32 UTC
I can still reproduce this issue on KDE Plasma 5.24.6 one 4K (125% fractional scaling) screen and two FHD screens attached to the left and right.
Comment 35 lrdarknesss 2022-07-28 14:36:25 UTC
Created attachment 150960 [details]
Screenshot showing that the kickoff menu can occasionally still appear on the wrong position
Comment 36 me 2022-09-19 15:20:07 UTC
I'm using KDE Neon, after the last big upgrade (plasma: 5.25.1->5.25.5, frameworks: 5.97.0 -> 5.98.0), I also encounter this bug.

- Krunner in the center of the screen
- notification centered
- kickoff centered

see also: https://forum.kde.org/viewtopic.php?f=309&t=176055
Comment 37 kamiszczu 2022-09-20 10:30:14 UTC
(In reply to me from comment #36)
> I'm using KDE Neon, after the last big upgrade (plasma: 5.25.1->5.25.5,
> frameworks: 5.97.0 -> 5.98.0), I also encounter this bug.
> 
> - Krunner in the center of the screen
> - notification centered
> - kickoff centered
> 
> see also: https://forum.kde.org/viewtopic.php?f=309&t=176055


I have the same problem.
KDE Plasma version: 5.25.5
KDE Frameworks version: 5.98.0
QT version: 5.15.6
Wayland

I think KDE should focus on release stability.
Comment 38 Daniel 2022-09-21 11:58:33 UTC
- Krunner in the center of the screen
- notification in the center of the screen

Nice update, feels just like Windows 11
Comment 39 me 2022-09-24 09:18:22 UTC
(In reply to Daniel from comment #38)
> - Krunner in the center of the screen
> - notification in the center of the screen
> 
> Nice update, feels just like Windows 11

there's a new bug https://bugs.kde.org/show_bug.cgi?id=459188 and it seems to be fixed...
Comment 40 Marcus Larborg 2022-09-24 09:27:53 UTC
Operativsystem: KDE neon 5.25
Version av KDE Plasma: 5.25.5
Version av KDE Ramverk: 5.98.0
Qt-version: 5.15.6
Kärnans version: 5.15.0-48-generic (64-bitar)
Grafikplattform: Wayland
Processorer: 4 × Intel® Core™ i5-4200U CPU @ 1.60GHz
Minne: 7,3 Gibyte minne
Grafikprocessor: Mesa Intel® HD Graphics 4400
Tillverkare: Dell Inc.
Produktnamn: XPS13 9333

I have the same issue.
Not sure when this started, but have this issue with another user on the same computer.
Tested to create a new user, but the issue persist.
Comment 41 Nate Graham 2022-09-26 16:24:43 UTC
If it just started happening now, it's likely Bug 459188, which is now fixed.

The fix for that should hopefully have fixed the issue here too.

*** This bug has been marked as a duplicate of bug 459188 ***
Comment 42 kamiszczu 2022-10-11 15:26:48 UTC
When will be release fix for this bug on KDE NEON?
Comment 43 Nate Graham 2022-10-11 15:34:17 UTC
Once you update to Frameworks 5.99.
Comment 44 kamiszczu 2022-10-11 15:51:42 UTC
I know, but when?

Here https://community.kde.org/Schedules/Frameworks can be seen -  Sun October 9, 2022
Comment 45 Nate Graham 2022-10-11 16:14:02 UTC
Right. So it's been released by the KDE release team, but Neon may not be shipping the update yet. That would be a question for the Neon folks.