Forget the current mode when it is finished

This commit is contained in:
Mars-Wave
2026-08-24 18:31:58 +02:00
parent 5b07f7401b
commit 4ccad383c9
+3
View File
@@ -362,6 +362,9 @@ static void mode_handle_preferred(void *data,
static void mode_handle_finished(void *data,
struct zwlr_output_mode_v1 *wlr_mode) {
struct wd_mode *mode = data;
if (mode->head->mode == mode) {
mode->head->mode = NULL;
}
wl_list_remove(&mode->link);
wd_mode_destroy(mode);
}