Skip to content

Commit

Permalink
decorations: do not add a border to CSD windows on Undecorate
Browse files Browse the repository at this point in the history
  • Loading branch information
xi committed Apr 18, 2024
1 parent 55bb13d commit 3e43f29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,9 @@ actions_run(struct view *activator, struct server *server,
if (view) {
bool keep_border = action_get_bool(
action, "keepBorder", rc.ssd_keep_border);
if (keep_border) {
if (!view->ssd_enabled) {
/* do not add a border to CSD windows */
} else if (keep_border) {
view_set_decorations(view, LAB_SSD_MODE_BORDER);
} else {
view_set_decorations(view, LAB_SSD_MODE_NONE);
Expand Down

0 comments on commit 3e43f29

Please sign in to comment.