layer-shell: start transaction on map

The fact that this call is missing is a bug, as the changes made by
arranging the output layers as well as changes to the focus will not be
fully applied.
This commit is contained in:
Isaac Freund 2022-08-25 13:24:42 +02:00
parent 29ae7ba311
commit c0e64829f0
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -102,6 +102,7 @@ fn handleMap(listener: *wl.Listener(*wlr.LayerSurfaceV1), wlr_layer_surface: *wl
const node = @fieldParentPtr(std.TailQueue(Self).Node, "data", self);
self.output.getLayer(self.layer).append(node);
self.output.arrangeLayers(.mapped);
server.root.startTransaction();
}
fn handleUnmap(listener: *wl.Listener(*wlr.LayerSurfaceV1), _: *wlr.LayerSurfaceV1) void {