Skip to content

Commit

Permalink
remove background blur radius feature because of performance issues (#78
Browse files Browse the repository at this point in the history
)
  • Loading branch information
FelixKratz committed Mar 18, 2024
1 parent db682e7 commit 3b1df6f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
7 changes: 1 addition & 6 deletions docs/borders.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.nh
.ad l
.\" Begin generated content:
.TH "borders" "1" "2024-02-20"
.TH "borders" "1" "2024-03-18"
.P
.SH NAME
.P
Expand Down Expand Up @@ -45,11 +45,6 @@ Sets the border color for all windows not in focus.\&
Sets the background fill color for all windows (only \fI0xAARRGGBB\fR arguments supported).\&
.P
.RE
\fBblur_radius=<float>\fR
.RS 4
Sets the blur radius applied to the borders or backgrounds with transparency.\&
.P
.RE
\fBwidth=<float>\fR
.RS 4
Determines the width of the border.\& For example, width=5.\&0 creates a border
Expand Down
3 changes: 0 additions & 3 deletions docs/borders.1.scd
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ API, thereby being faster than comparable tools.
*background_color=<color>*
Sets the background fill color for all windows (only _0xAARRGGBB_ arguments supported).

*blur_radius=<float>*
Sets the blur radius applied to the borders or backgrounds with transparency.

*width=<float>*
Determines the width of the border. For example, width=5.0 creates a border
5.0 points wide.
Expand Down
1 change: 0 additions & 1 deletion src/border.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ void border_update_internal(struct border* border, struct settings* settings) {

SLSSetWindowTags(cid, border->wid, &set_tags, 0x40);
SLSClearWindowTags(cid, border->wid, &clear_tags, 0x40);
SLSSetWindowBackgroundBlurRadius(cid, border->wid, settings->blur_radius);

if (disabled_update) SLSReenableUpdate(cid);
}
Expand Down
3 changes: 0 additions & 3 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ uint32_t parse_settings(struct settings* settings, int count, char** arguments)
} else if (strcmp(arguments[i], "hidpi=off") == 0) {
update_mask |= BORDER_UPDATE_MASK_RECREATE_ALL;
settings->hidpi = false;
} else if (sscanf(arguments[i], "blur_radius=%f", &settings->blur_radius) == 1) {
if (settings->blur_radius > 25) settings->blur_radius = 25;
update_mask |= BORDER_UPDATE_MASK_ALL;
} else if (strcmp(arguments[i], "ax_focus=on") == 0) {
settings->ax_focus = true;
update_mask |= BORDER_UPDATE_MASK_SETTING;
Expand Down

0 comments on commit 3b1df6f

Please sign in to comment.