kevinlekiller / kwin-effect-shaders

Desktop effect for KDE Plasma to apply GLSL shaders. Alternative to vkBasalt or ReShade when they are unsupported.
GNU General Public License v2.0
40 stars 3 forks source link

The UI always starts in the middle on Wayland. #2

Closed kevinlekiller closed 2 years ago

kevinlekiller commented 2 years ago

After a few hours of trying to figure out a solution, I give up on this one for now.

I've tried storing and using the window geometry using one of the 3 QWidget available ways ( pos() + move() / rect() + setGeometry() / saveGeometry() + restoreGeometry() ).

When show() is called the first time, it works (only if it's done AFTER show(), not before, like they say to do it), subsequent times it goes back to the middle of the screen.

They mention how X11 has an issue where the window goes to the bottom right of the screen : https://doc.qt.io/qt-5/restoring-geometry.html

It's probably the same issue, but it goes to the middle on Wayland.