Calculate the available screen rect for dodge windows panel under wayland correctly.

After 8e2401e6 the notificatios/widgets did not position correctly when dodge windows panel was enabled under wayland. I fixed it with this commit i tested it on my local machine and everything looked correctly

This is my first contribution to plasma, and my first cpp code, feel free to correct my mistakes if i have 😄

To test it: 1- Create two or three panels

2- Set all panels to "Visibility: Dodge Windows" and anchor them to the bottom position. You can align one panel to the left, another to the right, and the third in the center. The exact alignment doesn't matter, as long as all panels are placed at the bottom.

3- Try sending a notification or placing a widget near the panel on the desktop, there shouldnt be a big margin between the panels and notification

BUG: 500668

Edited by Edip

Merge request reports

Loading