options: remove --respect-prop-shadow
A quick search on GitHub showing the _COMPTON_SHADOW is actively being used (most noteably, by polybar). It is not a difficult thing to support, and it doesn't have that much runtime overhead. So remove the option that guards this feature, make it enabled by default. (Side note, I saw lots of people putting this option in their config files, but this is actually a command line only option.) Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -738,7 +738,7 @@ static void win_determine_shadow(session_t *ps, struct managed_win *w) {
|
||||
!w->rounded_corners) {
|
||||
log_debug("Shadow disabled by shadow-ignore-shaped");
|
||||
shadow_new = false;
|
||||
} else if (ps->o.respect_prop_shadow && w->prop_shadow == 0) {
|
||||
} else if (w->prop_shadow == 0) {
|
||||
log_debug("Shadow disabled by shadow property");
|
||||
shadow_new = false;
|
||||
}
|
||||
@ -2080,9 +2080,7 @@ void map_win_start(session_t *ps, struct managed_win *w) {
|
||||
win_update_opacity_prop(ps, w);
|
||||
|
||||
// Check for _COMPTON_SHADOW
|
||||
if (ps->o.respect_prop_shadow) {
|
||||
win_update_prop_shadow_raw(ps, w);
|
||||
}
|
||||
win_update_prop_shadow_raw(ps, w);
|
||||
|
||||
// Many things above could affect shadow
|
||||
win_determine_shadow(ps, w);
|
||||
|
Reference in New Issue
Block a user