From f978a6eb7739c5f269b497c2cef924a1ca750518 Mon Sep 17 00:00:00 2001 From: columbarius Date: Mon, 19 Apr 2021 12:35:21 +0200 Subject: [PATCH] Revert "screencast: workaround corrupted output_list" This reverts commit 94f1f5d0a8e9387057b643111d9909f25395fa10. --- src/screencast/wlr_screencast.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/screencast/wlr_screencast.c b/src/screencast/wlr_screencast.c index 90e90c7..dd1bbc2 100644 --- a/src/screencast/wlr_screencast.c +++ b/src/screencast/wlr_screencast.c @@ -432,8 +432,7 @@ 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) { - // TODO: Replugging of outputs can result in a corrupted output_list - if (out->name && strcmp(out->name, name) == 0) { + if (strcmp(out->name, name) == 0) { *output = out; break; }