diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-18 16:21:26 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-18 16:21:26 +0200 |
| commit | fb2639a2264a279f20fef2ac385ef1e885026576 (patch) | |
| tree | 50b8680eeb57f60b9b3c2d3fba9ba1ebc2b06cb8 /src/output.zig | |
| parent | bf300db004fbced79fe30ea1947656117f462947 (diff) | |
| download | river-fb2639a2264a279f20fef2ac385ef1e885026576.tar.gz river-fb2639a2264a279f20fef2ac385ef1e885026576.tar.xz | |
Send surface enter/leave events
Diffstat (limited to 'src/output.zig')
| -rw-r--r-- | src/output.zig | 5 |
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 |
