-
Notifications
You must be signed in to change notification settings - Fork 1.1k
layer_shell: destroy layer_surface on assigned output destruction #8668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I can't really understand what the previous code was trying to do here, so I don't know if this is completely incorrect but this behavior matches what every other compositor does with on the output disable event. Even sway before the scene port, so probably just a tab complete fail that went unnoticed? |
3cbea64
to
52f1286
Compare
It seems like I think we're missing a layer shell surface destroy handler? Here the (There are other cases where a layer surface might get destroyed, e.g. when a client disconnects.) |
52f1286
to
75e0f0a
Compare
Seems like this is handled by |
I think this still leaves the |
|
What is the mechanism destroying the node when the layer shell surface is destroyed? |
Oh right, my bad, I forgot that we were using the scene-graph layer shell helper now… I think I preferred the previous version of this patch. |
According to the spec, the closed event should be sent when the surface is no longer shown, because the output may have been destroyed or the user may have asked for it to be removed. In such cases, the clients should destroy the resource. This fixes mako not being able to show notifications if the assigned output was destroyed while a notificataion was still visible Fixes: 188811f ("scene_graph: Port layer_shell")
75e0f0a
to
f79d688
Compare
Changed it back |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, and sorry for the noise!
According to the spec, the closed event should be sent when the surface is no longer shown, because the output may have been destroyed or the user may have asked for it to be removed. In such cases, the clients should destroy the resource.
This fixes mako not being able to show notifications if the assigned output was destroyed while a notificataion was still visible