layer-shell: handle commits before map

A client is free to change its mind and request a different
size/anchor/etc after recieving the initial configure but before
attaching and committing the first buffer. This means that we should
respond to such a situation with a new configure.

mako has been observed doing this in the wild for example.
This commit is contained in:
Isaac Freund
2021-06-21 19:02:24 +02:00
parent a2c81adba0
commit 3efcfedcf4
4 changed files with 46 additions and 36 deletions

View File

@ -220,7 +220,7 @@ fn handleInhibitDeactivate(
// keyboard-interactive surfaces will re-grab focus.
var output_it = server.root.outputs.first;
while (output_it) |output_node| : (output_it = output_node.next) {
output_node.data.arrangeLayers();
output_node.data.arrangeLayers(.mapped);
}
// After ensuring that any possible layer surface focus grab has occured,