From fb2639a2264a279f20fef2ac385ef1e885026576 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 18 Apr 2020 16:21:26 +0200 Subject: Send surface enter/leave events --- src/output.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/output.zig') diff --git a/src/output.zig b/src/output.zig index bb88156..4baf8a8 100644 --- a/src/output.zig +++ b/src/output.zig @@ -406,9 +406,8 @@ pub const Output = struct { // Move all views from the destroyed output to the fallback one while (destroyed_output.views.last) |node| { - destroyed_output.views.remove(node); - fallback_output.views.push(node); - node.view.output = fallback_output; + const view = &node.view; + view.sendToOutput(fallback_output); } // Close all layer surfaces on the destroyed output -- cgit v1.2.3