aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2023-02-10 23:53:08 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-02-28 14:55:58 +0100
commit85843dd5c70ae267ac7a3418cca52f98db42965f (patch)
tree48ff4839ff7f82e996f7f8dfb1922432fb93ba1e
parent1b57fe0aa747f7b6a5d421ef9eae1eb1ed2af6af (diff)
downloadriver-85843dd5c70ae267ac7a3418cca52f98db42965f.tar.gz
river-85843dd5c70ae267ac7a3418cca52f98db42965f.tar.xz
View: remove dead code
wl_output.enter/leave is handled by wlr_scene now.
-rw-r--r--river/View.zig18
1 files changed, 0 insertions, 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();