From f4fab1e4967da0f4ea1f6f57e3fd295ecf3eda82 Mon Sep 17 00:00:00 2001 From: Simon Labrecque Date: Tue, 31 Mar 2026 15:01:49 -0400 Subject: [PATCH] unfreeze windows after window sharing stops --- README.md | 2 +- share.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b409fe1..654c890 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ wlroots-based Wayland compositor with virtual outputs and physical cursor continuity. Originally forked from dwl. -`LOC: 7275 total, 2798 vwl.c` +`LOC: 7282 total, 2798 vwl.c` ## Features diff --git a/share.c b/share.c index c081561..5d96183 100644 --- a/share.c +++ b/share.c @@ -554,6 +554,15 @@ imagesourcedestroy(struct wl_listener *listener, void *data) wl_list_remove(&c->image_capture_source_destroy.link); wl_list_init(&c->image_capture_source_destroy.link); c->image_capture_source = NULL; + + if (!c->mon || !client_surface(c) || !client_surface(c)->mapped) + return; + + if (VISIBLEON(c, c->mon)) { + wlr_scene_node_set_enabled(&c->scene->node, 1); + client_set_suspended(c, 0); + } + wlr_output_schedule_frame(c->mon->wlr_output); } static void