Skip to content

Commit

Permalink
#565 allow border to be toggled per window or through a rule even if …
Browse files Browse the repository at this point in the history
…window_border off is specified
  • Loading branch information
koekeishiya committed Jun 13, 2020
1 parent 22fcc31 commit df189a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/border.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ void border_exit_fullscreen(struct window *window)

void border_create(struct window *window)
{
if (!g_window_manager.enable_window_border) return;
if (window->border.id) return;

if ((!window_is_standard(window)) && (!window_is_dialog(window))) return;
Expand Down
3 changes: 2 additions & 1 deletion src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ struct window *window_create(struct application *application, AXUIElementRef win
window->id_ptr = malloc(sizeof(uint32_t *));
*window->id_ptr = &window->id;
window->has_shadow = true;
border_create(window);

if (g_window_manager.enable_window_border) border_create(window);

return window;
}
Expand Down

0 comments on commit df189a0

Please sign in to comment.