a-parhom / LightlyShaders

Rounded window corners and outline effect for KWin.
363 stars 24 forks source link

Configure newly connected screens in paintScreen #136

Closed Diman119 closed 5 months ago

Diman119 commented 5 months ago

Fixes #121. This issue was really bothering me, so I decided to fix it myself :)

Added a "configured" field to LSScreenStruct, that is initially false and represents a new monitor, and a check for that field in paintScreen, that reconfigures the effect when such monitor is detected.

Sorry for a lot of trailing spaces removed, vscode does this automatically on save.

Goodname15 commented 5 months ago

~Unfortunately, after compiling your branch, this does not appear to the problem for me... Turning a monitor off and on again still results in the rounded corners missing for that monitor until LightlyShaders is reapplied.~

I am currently using Fedora 39 with KDE Plasma 5.27.11 on Wayland and would also love to see this issue resolved as it is the one minor annoyance I currently have with LightlyShaders.

EDIT: I take this back completely. After a quick reinstall of your branch and a reboot, it now appears to be working!