Send surface enter/leave events

This commit is contained in:
Isaac Freund
2020-04-18 16:21:26 +02:00
parent bf300db004
commit fb2639a226
3 changed files with 24 additions and 14 deletions

View File

@ -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