river: remove wlroots 0.14 workarounds

Since updating to wlroots 0.15 we can remove several workarounds we had
in place due to wlroots improvements.
This commit is contained in:
Isaac Freund
2021-12-22 20:15:57 +00:00
parent 90aee02b70
commit 6a093fecee
6 changed files with 6 additions and 35 deletions

View File

@ -179,15 +179,8 @@ pub fn removeOutput(self: *Self, output: *Output) void {
// Close all layer surfaces on the removed output
for (output.layers) |*layer| {
// Closing the layer surface will cause LayerSurface.handleUnmap()
// to be called synchronously, which will remove it from this list.
while (layer.first) |layer_node| {
const layer_surface = &layer_node.data;
layer_surface.wlr_layer_surface.close();
layer_surface.wlr_layer_surface.output = null;
layer_surface.output = undefined;
}
// Destroying the layer surface will cause it to be removed from this list.
while (layer.first) |layer_node| layer_node.data.wlr_layer_surface.destroy();
}
// If any seat has the removed output focused, focus the fallback one