LayerSurface: don't configure in response to unmap
We should wait until the next "initial commit" before sending a configure after a layer surface unmaps itself.
This commit is contained in:
@ -366,7 +366,11 @@ fn sendLayerConfigures(
|
|||||||
if (@as(?*SceneNodeData, @ptrCast(@alignCast(node.data)))) |node_data| {
|
if (@as(?*SceneNodeData, @ptrCast(@alignCast(node.data)))) |node_data| {
|
||||||
const layer_surface = node_data.data.layer_surface;
|
const layer_surface = node_data.data.layer_surface;
|
||||||
|
|
||||||
if (!layer_surface.wlr_layer_surface.initialized) continue;
|
if (!layer_surface.wlr_layer_surface.surface.mapped and
|
||||||
|
!layer_surface.wlr_layer_surface.initial_commit)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const exclusive = layer_surface.wlr_layer_surface.current.exclusive_zone > 0;
|
const exclusive = layer_surface.wlr_layer_surface.current.exclusive_zone > 0;
|
||||||
if (exclusive != (mode == .exclusive)) {
|
if (exclusive != (mode == .exclusive)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user