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

commit0a4a69e413aa2e08f65215ff0ae8374dbd7e8c88
parent5be72e15b7
authorIsaac Freund <[email protected]>
date2020-06-07 19:40
code: remove dead code

 river/Root.zig | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/river/Root.zig b/river/Root.zig
index d4a22b1..11ec344 100644
--- a/river/Root.zig
+++ b/river/Root.zig
@@ -109,14 +109,6 @@ pub fn addOutput(self: *Self, wlr_output: *c.wlr_output) void {
     }
 }
 
-/// Clear the current focus.
-pub fn clearFocus(self: *Self) void {
-    if (self.focused_view) |view| {
-        _ = c.wlr_xdg_toplevel_set_activated(view.wlr_xdg_surface, false);
-    }
-    self.focused_view = null;
-}
-
 /// Arrange all views on all outputs and then start a transaction.
 pub fn arrange(self: *Self) void {
     var it = self.outputs.first;