mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 06:35:57 +01:00
fix returnlist on no manager
This commit is contained in:
parent
ee73fca9cc
commit
13db7db849
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue