git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commitaa240c013262bf3f227bee001b49c745ba4b466d
parent5af186657b
authorIsaac Freund <[email protected]>
date2020-04-05 16:32
Highlight border of focused view

 src/output.zig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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