Bug 465690 - When using wayland, Popup dialogs show up in the middle, or middle/bottom of the desktop
Summary: When using wayland, Popup dialogs show up in the middle, or middle/bottom of ...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: 5.102.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-13 22:37 UTC by Troy Dawson
Modified: 2023-04-26 22:44 UTC (History)
6 users (show)

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


Attachments
notifications at bottom center (786.69 KB, image/png)
2023-02-13 22:37 UTC, Troy Dawson
Details
menu at bottom center (743.83 KB, image/png)
2023-02-13 22:42 UTC, Troy Dawson
Details
krunner a center (418.56 KB, image/png)
2023-02-13 22:43 UTC, Troy Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Dawson 2023-02-13 22:37:34 UTC
Created attachment 156211 [details]
notifications at bottom center

SUMMARY
***
When using wayland, Popup dialogs show up in the middle, or middle/bottom of the desktop.
This is on RHEL 8, 9 (and it's clones Alma and Rocky) as well as CentOS Stream 8 and 9.  It's been happening since we first started using wayland, and has never changed.
We thought it was due to an older wayland / plasma / kf5.  But with the latest CentOS Stream 9, we have the same versions as Fedora for all of those things.
We have also applied the patch that is coming out with kf5 103.  It didn't help.
https://invent.kde.org/frameworks/plasma-framework/-/commit/eda6caabcffff484544af8949d0ca0a3ea3ce333
It does the same on virtual machines as well as real hardware.
***


STEPS TO REPRODUCE
1. Download CentOS Stream 9 live image
2. Run it.
3. Click on Menu, notifications, or open krunner.

OBSERVED RESULT
The pop-up dialogs will show up in the exact center, or bottom center of the desktop

EXPECTED RESULT
Menu should show up in bottom left.  Notifications should show up at bottom right.  krunner should show up on top center.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
libwayland 1.21.0
Comment 2 Troy Dawson 2023-02-13 22:42:50 UTC
Created attachment 156212 [details]
menu at bottom center
Comment 3 Troy Dawson 2023-02-13 22:43:16 UTC
Created attachment 156213 [details]
krunner a center
Comment 4 Nate Graham 2023-02-14 17:26:22 UTC
:(
Comment 5 Nate Graham 2023-02-14 17:26:58 UTC
You said, "It's been happening since we first started using wayland, and has never changed." How long has that been? Are we talking about weeks, months, years... Can you give a sense of when you first hit the issue?
Comment 6 Nate Graham 2023-02-14 17:28:11 UTC
If you install the system, does the problem persist? In other words, does it only reproduce in the live session?

Are you sunning this in a VM, or bare metal?

I also notice that graphics seem to be broken as there's no blur behind the popups. Perhaps a clue...
Comment 7 Méven Car 2023-02-14 17:29:59 UTC
Do you use the official Qt 5.12.3 version or the KDE Qt patch collection (https://community.kde.org/Qt5PatchCollection) ?
Comment 8 Troy Dawson 2023-02-14 17:46:13 UTC
(In reply to Nate Graham from comment #5)
> You said, "It's been happening since we first started using wayland, and has
> never changed." How long has that been? Are we talking about weeks, months,
> years... Can you give a sense of when you first hit the issue?

Years.  At least since 2020 with plasma 5.18.4.
Comment 9 Troy Dawson 2023-02-14 17:47:29 UTC
(In reply to Nate Graham from comment #6)
> If you install the system, does the problem persist? In other words, does it
> only reproduce in the live session?
> 

Live or installed, it gives the same results.

> Are you sunning this in a VM, or bare metal?
> 

Both Virtual Machines and bare metal.

> I also notice that graphics seem to be broken as there's no blur behind the
> popups. Perhaps a clue...

Possible.
Comment 10 Troy Dawson 2023-02-14 17:51:23 UTC
(In reply to Méven Car from comment #7)
> Do you use the official Qt 5.12.3 version or the KDE Qt patch collection
> (https://community.kde.org/Qt5PatchCollection) ?

We are using the KDE QT patch collection.
I know the patch collection is beyond 5.12.3 now.  But at the time that 5.12.3 was the latest, it had this bug on RHEL, but not on Fedora.
Comment 11 Nate Graham 2023-02-17 16:19:37 UTC
What Qt version and patch collection version are you using right now where you can reproduce the bug?
Comment 12 Troy Dawson 2023-02-17 16:47:50 UTC
(In reply to Nate Graham from comment #11)
> What Qt version and patch collection version are you using right now where
> you can reproduce the bug?

Oh, I think I put the wrong version in the comment above. 5.15.3 and the patchset that created 5.15.3
Comment 13 Nate Graham 2023-02-17 17:12:54 UTC
Thanks. Does the issue go away if you upgrade to 5.15.8 with the associated KDE patches for that release?
Comment 14 Troy Dawson 2023-02-17 17:18:44 UTC
(In reply to Nate Graham from comment #13)
> Thanks. Does the issue go away if you upgrade to 5.15.8 with the associated
> KDE patches for that release?

That will take me some time to rebuild those, along with their dependencies, but I can try that.
I'm not confident it will help.
At the time we went to qt5 5.15.3 we were the save version and patches as Fedora, yet they were not showing the problem.
Comment 15 Bug Janitor Service 2023-03-04 03:45:50 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 16 Troy Dawson 2023-03-09 15:36:19 UTC
Just letting you know that I've gotten the latest QT5 stack built.  I am now rebuilding the KDE stack on top of it.  Should have it done by the end of the week.
Comment 17 Troy Dawson 2023-03-10 19:21:43 UTC
I have rebuild qt5 so that it matches the latest Fedora version, 5.15.8.
I have rebuild the KDE Plasma Desktop so it matches the latest Fedora version 5.27.2, and the kf5 to 5.103, and everything KDE related I can think of to what is in the latest stable release of Fedora.
I have to say I like several of the updates, but when running Wayland, the dialogs still are in the center.
I have added a new user just incase there was some leftover configuration.  Didn't help.
Comment 18 Troy Dawson 2023-03-10 19:47:40 UTC
I did a fresh minimal install so there was no qt5 or kde packages installed.  Then installed all the new qt5 and kde plasma desktop that I had compiled.  Just incase there was some random config file giving issues.  Still have the problem.
Comment 19 Nate Graham 2023-03-13 14:44:11 UTC
:/
Comment 20 Troy Dawson 2023-04-25 15:59:26 UTC
Found and fixed.
In the end it was a distribution specific bug.  I'm sorry for the noise I created.
In the end it was kf5-plasma.
There was a conditional in it's spec file that on RHEL based machines, it didn't get the wayland-devel package during building, and it didn't get a wayland cache file.
I didn't expect it to be a kf5 error, and my greps through the various spec files were not catching this conditional.
Once again, sorry for the noise.  And thank you to everyone who helped track this down.
Comment 21 Nate Graham 2023-04-25 16:02:18 UTC
Great, glad it's fixed now!
Comment 22 Neal Gompa 2023-04-26 22:44:42 UTC
Can we look at having the kf6-wayland dependency be made mandatory for kf6-plasma to avoid stuff like this?