diff options
author | Squibid <me@zacharyscheiman.com> | 2025-02-11 15:45:12 -0600 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-02-11 15:45:12 -0600 |
commit | d06ea7dcb8d51bf7cff3800dcfcd7ae852e3cb7f (patch) | |
tree | 7ef896302680b50aa38208e4de2a8dcd953d4aa8 /dwl.c | |
parent | efc1c9f49fc4d4d632ada3c57864a9d6e6f8ad6c (diff) | |
download | dwl-d06ea7dcb8d51bf7cff3800dcfcd7ae852e3cb7f.tar.gz dwl-d06ea7dcb8d51bf7cff3800dcfcd7ae852e3cb7f.tar.bz2 dwl-d06ea7dcb8d51bf7cff3800dcfcd7ae852e3cb7f.zip |
add colored borders
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1642,10 +1642,7 @@ focusclient(Client *c, int lift) selmon = c->mon; c->isurgent = 0; - /* Don't change border color if there is an exclusive focus or we are - * handling a drag operation */ - if (!exclusive_focus && !seat->drag) - client_set_border_color(c, focuscolor); + client_set_border_color(c, focuscolor); } /* Deactivate old client if focus is changing */ @@ -2128,6 +2125,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); /* Update drag icon's position */ wlr_scene_node_set_position(&drag_icon->node, (int)round(cursor->x), (int)round(cursor->y)); |