aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-05 16:32:43 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-05 16:32:43 +0200
commitbcb143fe13586e42fc27e191f262925ca7a879c4 (patch)
treeb3bfdfc5d3d297acca2168d5efe0ce5dd653f51e /src
parent89d2a8685102be706ea325e90ad53781bbb2959f (diff)
downloadriver-bcb143fe13586e42fc27e191f262925ca7a879c4.tar.gz
river-bcb143fe13586e42fc27e191f262925ca7a879c4.tar.xz
Highlight border of focused view
Diffstat (limited to 'src')
-rw-r--r--src/output.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/output.zig b/src/output.zig
index bd51700..6de956d 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -223,7 +223,10 @@ pub const Output = struct {
fn renderBorders(self: Self, view: *View, now: *c.struct_timespec, ox: f64, oy: f64) void {
var border: c.wlr_box = undefined;
- const color = [_]f32{ 0.34509804, 0.43137255, 0.45882353, 1.0 }; // Solarized base01
+ const color = if (self.root.focused_view == view)
+ [_]f32{ 0.57647059, 0.63137255, 0.63137255, 1.0 } // Solarized base1
+ else
+ [_]f32{ 0.34509804, 0.43137255, 0.45882353, 1.0 }; // Solarized base01
const border_width = self.root.border_width;
// left border