View: remove dead code
wl_output.enter/leave is handled by wlr_scene now.
This commit is contained in:
parent
1b57fe0aa7
commit
85843dd5c7
@ -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 {
|
pub fn close(self: Self) void {
|
||||||
switch (self.impl) {
|
switch (self.impl) {
|
||||||
.xdg_toplevel => |xdg_toplevel| xdg_toplevel.close(),
|
.xdg_toplevel => |xdg_toplevel| xdg_toplevel.close(),
|
||||||
@ -516,8 +500,6 @@ pub fn map(self: *Self) !void {
|
|||||||
var it = server.input_manager.seats.first;
|
var it = server.input_manager.seats.first;
|
||||||
while (it) |seat_node| : (it = seat_node.next) try seat_node.data.handleViewMap(self);
|
while (it) |seat_node| : (it = seat_node.next) try seat_node.data.handleViewMap(self);
|
||||||
|
|
||||||
self.sendEnter(self.output);
|
|
||||||
|
|
||||||
self.output.sendViewTags();
|
self.output.sendViewTags();
|
||||||
|
|
||||||
self.applyPending();
|
self.applyPending();
|
||||||
|
Loading…
Reference in New Issue
Block a user