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

commit0899057a1a60c42f681f6318ad5556c4a270dc12
parente4a75cffb4
authorIsaac Freund <[email protected]>
date2023-02-10 23:53
View: remove dead code

wl_output.enter/leave is handled by wlr_scene now.

 river/View.zig | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/river/View.zig b/river/View.zig
index bb73335..7d38f1d 100644
--- a/river/View.zig
+++ b/river/View.zig
@@ -354,22 +354,6 @@ pub fn sendToOutput(self: *Self, destination_output: *Output) void {
     }
 }
 
-fn sendEnter(self: *Self, output: *Output) void {
-    self.forEachSurface(*wlr.Output, sendEnterIterator, output.wlr_output);
-}
-
-fn sendEnterIterator(surface: *wlr.Surface, _: c_int, _: c_int, wlr_output: *wlr.Output) void {
-    surface.sendEnter(wlr_output);
-}
-
-fn sendLeave(self: *Self, output: *Output) void {
-    self.forEachSurface(*wlr.Output, sendLeaveIterator, output.wlr_output);
-}
-
-fn sendLeaveIterator(surface: *wlr.Surface, _: c_int, _: c_int, wlr_output: *wlr.Output) void {
-    surface.sendLeave(wlr_output);
-}
-
 pub fn close(self: Self) void {
     switch (self.impl) {
         .xdg_toplevel => |xdg_toplevel| xdg_toplevel.close(),
@@ -516,8 +500,6 @@ pub fn map(self: *Self) !void {
     var it = server.input_manager.seats.first;
     while (it) |seat_node| : (it = seat_node.next) try seat_node.data.handleViewMap(self);
 
-    self.sendEnter(self.output);
-
     self.output.sendViewTags();
 
     self.applyPending();