Bug 461856

Summary: [wayland] wrong window position and size after upgrade qt5-wayland (5.15.7+kde+r49-1 -> 5.15.7+kde+r52-1)
Product: [Plasma] lattedock Reporter: im.lechain
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal CC: hugeblank, kde, kde, nate, niccolo.venerandi, tobias
Priority: NOR Keywords: regression
Version: 0.10.8   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 0.10.9
Attachments: the wrong position system tray

Description im.lechain 2022-11-15 04:03:02 UTC
Created attachment 153758 [details]
the wrong position system tray

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. upgrade the qt5-wayland and reboot system
2. expand the system tray or launch yakuake

OBSERVED RESULT
the system tray would expand at the left-top corner on the screen and the yakuake would fix the window height and crash when change the window height via mouse

EXPECTED RESULT
the system tray expanded on the right position and launch yakuake as right height

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  wayland on linux-zen 6.0.8-zen 
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version:  5.99.0
Qt Version: qt5-base 5.15.7+kde+r174-1

ADDITIONAL INFORMATION
qt5-wayland updated change:
https://invent.kde.org/qt/qt/qtwayland/-/commit/aed15df34710dd5f95f7993e1a1892ee41b5661b

add the env "QT_WAYLAND_DISABLE_FIXED_POSITIONS=1" into my /etc/environment and then reboot system can recover the issue
Comment 1 veggero 2022-11-15 22:14:34 UTC
Moving over to latte dock
Comment 2 hugeblank 2022-11-16 08:58:13 UTC
I can confirm this is happening with any widget that presents a window on the dock. Cannot confirm it's happening with yakuake though.
Comment 3 Bug Janitor Service 2022-11-16 09:41:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/latte-dock/-/merge_requests/41
Comment 4 David Redondo 2022-11-16 10:59:09 UTC
Git commit 1d468a94e931d684f1ec180584eaa1d25765f100 by David Redondo.
Committed on 16/11/2022 at 09:19.
Pushed by davidedmundson into branch 'master'.

Opt out of fixed window positions on Wayland

Latte dock is using PlasmaQuick::Dialog and can load applets that use
PlasmaQuick::Dialog, which uses QWindow::position to cache the position
where the window is requested to be, so we need to opt out of this
Qt behavior.

M  +2    -0    app/main.cpp

https://invent.kde.org/plasma/latte-dock/commit/1d468a94e931d684f1ec180584eaa1d25765f100
Comment 5 David Redondo 2022-11-16 16:25:00 UTC
Git commit cf37681a749ce6328dc6bf8e8ab97ec9b1f3900d by David Redondo.
Committed on 16/11/2022 at 16:24.
Pushed by davidre into branch 'v0.10'.

Opt out of fixed window positions on Wayland

Latte dock is using PlasmaQuick::Dialog and can load applets that use
PlasmaQuick::Dialog, which uses QWindow::position to cache the position
where the window is requested to be, so we need to opt out of this
Qt behavior.


(cherry picked from commit 1d468a94e931d684f1ec180584eaa1d25765f100)

M  +2    -0    app/main.cpp

https://invent.kde.org/plasma/latte-dock/commit/cf37681a749ce6328dc6bf8e8ab97ec9b1f3900d
Comment 6 Antonio Rojas 2022-11-17 22:18:53 UTC
*** Bug 461965 has been marked as a duplicate of this bug. ***