alex47 / KDE-Rounded-Corners

Rounds the corners of your windows
GNU General Public License v3.0
166 stars 15 forks source link

Apply different radius to different applications #11

Closed ciampolo closed 5 years ago

ciampolo commented 5 years ago

Is there any way? I have no clue how to interact with the Plasma code tbh. I tried the following yet it didn't work since apparently setRoundness applies the effect for all windows?

in paintWindow and prePaintWindow I added

if (w->windowClass() == "gedit") { setRoundness(20); } else { setRoundness(5); }

is there any way to do this?

ciampolo commented 5 years ago

Ok sorry for the noise appearently I had to check the windowClass with a contains. Checking strings wasn't enough.