mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-09-07 11:44:43 +00:00
fix crashes with windows changing their title after unmapnotify is called
This commit is contained in:
parent
9859268ca3
commit
61e198d7a1
5
dwl.c
5
dwl.c
@ -2884,8 +2884,9 @@ unmapnotify(struct wl_listener *listener, void *data)
|
|||||||
setmon(c, NULL, 0);
|
setmon(c, NULL, 0);
|
||||||
wl_list_remove(&c->flink);
|
wl_list_remove(&c->flink);
|
||||||
}
|
}
|
||||||
if (c->ext_foreign_toplevel) {
|
if (c->ext_foreign_toplevel != NULL) {
|
||||||
wlr_ext_foreign_toplevel_handle_v1_destroy(c->ext_foreign_toplevel);
|
wlr_ext_foreign_toplevel_handle_v1_destroy(c->ext_foreign_toplevel);
|
||||||
|
c->ext_foreign_toplevel = NULL;
|
||||||
}
|
}
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
if (c->type != XDGShell && c->capture.image_capture_scene_surface) {
|
if (c->type != XDGShell && c->capture.image_capture_scene_surface) {
|
||||||
@ -3012,7 +3013,7 @@ updatetitle(struct wl_listener *listener, void *data)
|
|||||||
Client *c = wl_container_of(listener, c, set_title);
|
Client *c = wl_container_of(listener, c, set_title);
|
||||||
if (c == focustop(c->mon))
|
if (c == focustop(c->mon))
|
||||||
printstatus();
|
printstatus();
|
||||||
if (c->ext_foreign_toplevel) {
|
if (c->ext_foreign_toplevel != NULL) {
|
||||||
struct wlr_ext_foreign_toplevel_handle_v1_state foreign_toplevel_state = {
|
struct wlr_ext_foreign_toplevel_handle_v1_state foreign_toplevel_state = {
|
||||||
.app_id = client_get_appid(c),
|
.app_id = client_get_appid(c),
|
||||||
.title = client_get_title(c),
|
.title = client_get_title(c),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user