mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-05 05:35:42 +03:00
Forget the current mode when it is finished
This commit is contained in:
1 parent
5b07f7401b
commit
4ccad383c9
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user