mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-23 01:59:49 +01:00
screencast: workaround corrupted output_list
This commit is contained in:
parent
d556426359
commit
94f1f5d0a8
1 changed files with 2 additions and 1 deletions
|
@ -424,7 +424,8 @@ static bool wlr_output_chooser(struct xdpw_output_chooser *chooser,
|
|||
|
||||
logprint(TRACE, "wlroots: output chooser %s selects output %s", chooser->cmd, name);
|
||||
wl_list_for_each(out, output_list, link) {
|
||||
if (strcmp(out->name, name) == 0) {
|
||||
// TODO: Replugging of outputs can result in a corrupted output_list
|
||||
if (out->name && strcmp(out->name, name) == 0) {
|
||||
*output = out;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue