aboutsummaryrefslogtreecommitdiff
path: root/src/output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-18 16:21:26 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-18 16:21:26 +0200
commitfb2639a2264a279f20fef2ac385ef1e885026576 (patch)
tree50b8680eeb57f60b9b3c2d3fba9ba1ebc2b06cb8 /src/output.zig
parentbf300db004fbced79fe30ea1947656117f462947 (diff)
downloadriver-fb2639a2264a279f20fef2ac385ef1e885026576.tar.gz
river-fb2639a2264a279f20fef2ac385ef1e885026576.tar.xz
Send surface enter/leave events
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig5
1 files changed, 2 insertions, 3 deletions
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