forge
Explore
Log in

Don't you dare go Hollow

Arrange layer map after sending new scale/transform

Browse files at this commit

d25d6ce337d69a599d9a8a1ecc54a5128181ee0aIvan MolodetskikhParent: bb04407
I think that should be a slightly better ordering of events.
src/niri.rsmodified+1 -1
@@ -2163,12 +2163,12 @@ impl Niri {
2163 2163
2164 {2164 {
2165 let mut layer_map = layer_map_for_output(output);2165 let mut layer_map = layer_map_for_output(output);
2166- layer_map.arrange();
2167 for layer in layer_map.layers() {2166 for layer in layer_map.layers() {
2168 layer.with_surfaces(|surface, data| {2167 layer.with_surfaces(|surface, data| {
2169 send_scale_transform(surface, data, scale, transform);2168 send_scale_transform(surface, data, scale, transform);
2170 });2169 });
2171 }2170 }
2171+ layer_map.arrange();
2172 }2172 }
2173 2173
2174 self.layout.update_output_size(output);2174 self.layout.update_output_size(output);