-
-
Notifications
You must be signed in to change notification settings - Fork 598
Rounded corners for legacy xrender backend #551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1729164
to
4bd612d
Compare
Codecov Report
@@ Coverage Diff @@
## next #551 +/- ##
==========================================
- Coverage 38.21% 37.98% -0.24%
==========================================
Files 46 46
Lines 9056 9186 +130
==========================================
+ Hits 3461 3489 +28
- Misses 5595 5697 +102
|
4bd612d
to
c523745
Compare
I think this change is pretty isolated, doesn't have much impact outside the legacy backends. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
full-shadow
is broken with corner-radius > 0
.
For performance reasons it might be preferable to cache the rounded window mask, but I guess this might not be justifiable for the legacy backends.
xcb_render_color_t black = { | ||
.red = 255, .blue = 255, .green = 255, .alpha = 255}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this actually white? Or am I missing something? Should matter though as long as it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, this is white. maybe it's named black because we do a OP_OUT_REVERSE
later, so it's inverted? I can only guess.
Signed-off-by: Yuxuan Shui <[email protected]>
Authored-by: Samuel Hand <[email protected]>
Allows the user to selectively disable rounded corners. Authored-by: Samuel Hand <[email protected]>
Signed-off-by: Yuxuan Shui <[email protected]>
Signed-off-by: Yuxuan Shui <[email protected]>
2689c9a
to
cb41ea9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although I couldn't test this with other window managers.
@tryone144 Thanks. |
Part of #480 and #229