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