Bug 391166 - KDecoration2: allow setting border radius
Summary: KDecoration2: allow setting border radius
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-27 15:07 UTC by Vlad Zahorodnii
Modified: 2018-02-27 17:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Expected: corners are round even without borders (9.40 KB, image/png)
2018-02-27 15:07 UTC, Vlad Zahorodnii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Zahorodnii 2018-02-27 15:07:35 UTC
Created attachment 111049 [details]
Expected: corners are round even without borders

The border radius would allow to round window corners. (similar to the CSS border-radius property, https://www.w3schools.com/cssref/css3_pr_border-radius.asp)

At a given moment, in order to round window corners, a decoration theme should add borders and round corners by itself. That approach has a big disadvantage, it doesn't work with "borderless" windows. Maybe, KWin should handle border radius property...

It would be great to have the following class method in KDecoration2::Decoration:

```cpp
void setBorderRadius(int radius);
```

This method would apply a given border radius to all corners.


Possible implementation: do clipping when rendering windows?
Comment 1 Martin Flöser 2018-02-27 17:00:50 UTC
We cannot cut off from windows.