a-parhom / LightlyShaders

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

Disable rounding effect when window is tiled #19

Open SilverMarcs opened 2 years ago

SilverMarcs commented 2 years ago

Currently corners are still rounded when a window is tiled on either side and/or quarter of screen. This is especially distracting when two windows are tiled side by side as it introduces this gap:

image

Additionally, it adds the following effect in the active window:

image

a-parhom commented 2 years ago

The problem with black corners near the edge of the screen is fixed in the branch 'precache_shadows'. It may need some more performance optimization though, so not merged to master right now (see issue #15).

For now I have not found a solution for verifying if a window is tiled. If I'll find it in future, I'll add an option for disabling the effect for tiled windows.

SilverMarcs commented 2 years ago

I'll check that branch out. I wonder if would it be possible to round off window the edge of an window thats touching the monitor and squaring off the edge of window thats tiled against another window

a-parhom commented 2 years ago

I don't think it's even possible to do it that way. All that could be done here is to make the effect skip processing of tiled windows.

matinlotfali commented 4 months ago

The tiling is supported in https://github.com/matinlotfali/KDE-Rounded-Corners