mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-23 18:24:56 +03:00
Save kanshi snapshot ahead of mode removal
This commit is contained in:
1 parent
aa9b98df59
commit
9cd13c02c3
1 file changed
+3
@@ -400,6 +400,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;
|
||||
#ifdef WITH_KANSHI
|
||||
wd_save_kanshi_snapshot(mode->head->state);
|
||||
#endif
|
||||
wl_list_remove(&mode->link);
|
||||
wd_mode_destroy(mode);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user