@@ -285,6 +285,8 @@ void apply(void) {
285
285
286
286
log_cap_lines_start (& log_cap_lines );
287
287
288
+ free (deltas_brief );
289
+
288
290
if ((head_changing_mode = slist_find_val (heads , head_current_mode_not_desired ))) {
289
291
290
292
print_head (INFO , DELTA , head_changing_mode );
@@ -293,6 +295,11 @@ void apply(void) {
293
295
head_changing_mode -> zwlr_config_head = zwlr_output_configuration_v1_enable_head (zwlr_config , head_changing_mode -> zwlr_head );
294
296
zwlr_output_configuration_head_v1_set_mode (head_changing_mode -> zwlr_config_head , head_changing_mode -> desired .mode -> zwlr_mode );
295
297
298
+ struct SList * heads = NULL ;
299
+ slist_append (& heads , head_changing_mode );
300
+ deltas_brief = render_deltas_brief (displ -> config_state , heads );
301
+ slist_free (& heads );
302
+
296
303
} else if ((head_changing_adaptive_sync = slist_find_val (heads , head_current_adaptive_sync_not_desired ))) {
297
304
298
305
print_head (INFO , DELTA , head_changing_adaptive_sync );
@@ -301,6 +308,10 @@ void apply(void) {
301
308
head_changing_adaptive_sync -> zwlr_config_head = zwlr_output_configuration_v1_enable_head (zwlr_config , head_changing_adaptive_sync -> zwlr_head );
302
309
zwlr_output_configuration_head_v1_set_adaptive_sync (head_changing_adaptive_sync -> zwlr_config_head , head_changing_adaptive_sync -> desired .adaptive_sync );
303
310
311
+ struct SList * heads = NULL ;
312
+ slist_append (& heads , head_changing_adaptive_sync );
313
+ deltas_brief = render_deltas_brief (displ -> config_state , heads );
314
+ slist_free (& heads );
304
315
} else {
305
316
306
317
print_heads (INFO , DELTA , heads );
@@ -318,6 +329,8 @@ void apply(void) {
318
329
zwlr_output_configuration_v1_disable_head (zwlr_config , head -> zwlr_head );
319
330
}
320
331
}
332
+
333
+ deltas_brief = render_deltas_brief (displ -> config_state , heads_changing );
321
334
}
322
335
323
336
// TODO unique file passed to the user
@@ -327,9 +340,6 @@ void apply(void) {
327
340
328
341
zwlr_output_configuration_v1_apply (zwlr_config );
329
342
330
- free (deltas_brief );
331
- deltas_brief = render_deltas_brief (displ -> config_state , heads_changing );
332
-
333
343
displ -> config_state = OUTSTANDING ;
334
344
335
345
slist_free (& heads_changing );
0 commit comments