fix returnlist on no manager

This commit is contained in:
vaxerski 2023-02-01 19:48:49 +00:00
parent ee73fca9cc
commit 13db7db849
1 changed files with 3 additions and 0 deletions

View File

@ -676,6 +676,9 @@ char *getFormat(const char *fmt, ...) {
char *buildWindowList(struct xdpw_screencast_context *ctx) {
char *rolling = calloc(1, 1);
if (!ctx->wlroots_toplevel_manager)
return rolling;
struct SToplevelEntry *current;
wl_list_for_each(current, &ctx->toplevel_resource_list, link) {
char *oldRolling = rolling;