diff options
author | 2018-03-30 13:18:50 -0400 | |
---|---|---|
committer | 2018-03-30 17:16:35 -0400 | |
commit | a776ecbb860608e0f75430a53ea75a6ed19ac746 (patch) | |
tree | f664978ac74c3fc13993ed709cc1015c025d3344 /sway/tree/output.c | |
parent | Merge pull request #1667 from emersion/wlroots-xwayland-map (diff) | |
download | sway-a776ecbb860608e0f75430a53ea75a6ed19ac746.tar.gz sway-a776ecbb860608e0f75430a53ea75a6ed19ac746.tar.zst sway-a776ecbb860608e0f75430a53ea75a6ed19ac746.zip |
Add lite damage tracking
This skips the renderer if nothing has changed, and renders
everything otherwise.
Diffstat (limited to 'sway/tree/output.c')
-rw-r--r-- | sway/tree/output.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c index 2246cb11..7248fd00 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c | |||
@@ -26,9 +26,12 @@ struct sway_container *container_output_destroy(struct sway_container *output) { | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | wl_list_remove(&output->sway_output->frame.link); | ||
30 | wl_list_remove(&output->sway_output->destroy.link); | 29 | wl_list_remove(&output->sway_output->destroy.link); |
31 | wl_list_remove(&output->sway_output->mode.link); | 30 | wl_list_remove(&output->sway_output->mode.link); |
31 | wl_list_remove(&output->sway_output->transform.link); | ||
32 | |||
33 | wl_list_remove(&output->sway_output->damage_destroy.link); | ||
34 | wl_list_remove(&output->sway_output->damage_frame.link); | ||
32 | 35 | ||
33 | wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); | 36 | wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); |
34 | container_destroy(output); | 37 | container_destroy(output); |