mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -05:00
layers: don't send configure events in unmap handler
Alternative to7bf08afwhich was reverted in the previous commit.7bf08affixed the problem that layer-shell clients are terminated when it's unmapped, by sending configure events in node-destroy handler rather than in unmap handler. But it caused a UAF bug when an output with layer-shell clients is destroyed. So this patch fixes the original issue by simply skipping the surface in arrange_one_layer() if it's being unmapped.
This commit is contained in:
parent
cc0fe78ceb
commit
6f70cd0d6e
2 changed files with 19 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ struct lab_layer_surface {
|
|||
struct server *server;
|
||||
|
||||
bool mapped;
|
||||
/* true only inside handle_unmap() */
|
||||
bool being_unmapped;
|
||||
|
||||
struct wl_listener map;
|
||||
struct wl_listener unmap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue