diff options
-rw-r--r-- | client.h | 10 | ||||
-rw-r--r-- | config.def.h | 10 | ||||
-rw-r--r-- | dwl.c | 10 |
3 files changed, 15 insertions, 15 deletions
@@ -326,7 +326,7 @@ client_send_close(Client *c) } static inline void -client_set_border_color(Client *c, const float color[static 4], const float colors[static 4], const float colore[static 4]) +client_set_border_color(Client *c, const float color[static 4]) { int i; @@ -350,12 +350,12 @@ client_set_border_color(Client *c, const float color[static 4], const float colo if (border_color_type == BrdOriginal) { wlr_scene_rect_set_color(c->border[i], color); } else if (border_color_type == BrdStart) { - wlr_scene_rect_set_color(c->borders[i], colors); + wlr_scene_rect_set_color(c->borders[i], color); } else if (border_color_type == BrdEnd) { - wlr_scene_rect_set_color(c->bordere[i], colore); + wlr_scene_rect_set_color(c->bordere[i], color); } else if (border_color_type == BrdStartEnd) { - wlr_scene_rect_set_color(c->borders[i], colors); - wlr_scene_rect_set_color(c->bordere[i], colore); + wlr_scene_rect_set_color(c->borders[i], color); + wlr_scene_rect_set_color(c->bordere[i], color); } } } diff --git a/config.def.h b/config.def.h index 3dd19b2..d6cdf3a 100644 --- a/config.def.h +++ b/config.def.h @@ -8,11 +8,11 @@ static const int sloppyfocus = 1; /* focus follows mouse */ static const int warpcursor = 1; /* weather the cursor should move with client focus */ static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */ -static const unsigned int borderpx = 2; /* border pixel of windows */ -static const unsigned int borderspx = 2; /* width of the border that start from outside the windows */ -static const unsigned int borderepx = 0; /* width of the border that start from inside the windows */ -static const unsigned int borderspx_offset = 0; /* offset of the border that start from outside the windows */ -static const unsigned int borderepx_negative_offset = 0; /* offset of the border that start from inside the windows */ +static const unsigned int borderpx = 3; /* border pixel of windows */ +static const unsigned int borderspx = 3; /* width of the border that start from outside the windows */ +static const unsigned int borderepx = 3; /* width of the border that start from inside the windows */ +static const unsigned int borderspx_offset = 3; /* offset of the border that start from outside the windows */ +static const unsigned int borderepx_negative_offset = 3; /* offset of the border that start from inside the windows */ static const unsigned int gappx = 10; /* horiz inner gap between windows */ static const unsigned int swipe_min_threshold = 0; static const float bordercolor[] = COLOR(0x161617ff); @@ -1918,7 +1918,7 @@ focusclient(Client *c, int lift) selmon = c->mon; c->isurgent = 0; - client_set_border_color(c, focuscolor, borderscolor, borderecolor); + client_set_border_color(c, focuscolor); } /* Deactivate old client if focus is changing */ @@ -1935,7 +1935,7 @@ focusclient(Client *c, int lift) /* Don't deactivate old client if the new one wants focus, as this causes issues with winecfg * and probably other clients */ } else if (old_c && !client_is_unmanaged(old_c) && (!c || !client_wants_focus(c))) { - client_set_border_color(old_c, bordercolor, borderscolor, borderecolor); + client_set_border_color(old_c, bordercolor); client_activate_surface(old, 0); } @@ -2619,7 +2619,7 @@ motionnotify(uint32_t time, struct wlr_input_device *device, double dx, double d if (sloppyfocus) selmon = xytomon(cursor->x, cursor->y); } - client_set_border_color(focustop(selmon), focuscolor, borderscolor, borderecolor); + client_set_border_color(focustop(selmon), focuscolor); /* Update drag icon's position */ wlr_scene_node_set_position(&drag_icon->node, (int)round(cursor->x), (int)round(cursor->y)); @@ -3780,7 +3780,7 @@ urgent(struct wl_listener *listener, void *data) printstatus(); if (client_surface(c)->mapped) - client_set_border_color(c, urgentcolor, borderscolor, borderecolor); + client_set_border_color(c, urgentcolor); } void @@ -4009,7 +4009,7 @@ sethints(struct wl_listener *listener, void *data) printstatus(); if (c->isurgent && surface && surface->mapped) - client_set_border_color(c, urgentcolor, borderscolor, borderecolor); + client_set_border_color(c, urgentcolor); } void |