aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-11-12 22:23:06 +0100
committerLibravatar emersion <contact@emersion.fr>2018-11-12 22:23:06 +0100
commit2afd930914c9d31ed1da5ffd80b18f029e84f8c5 (patch)
tree52157267467d84cd9ce83265ca4b600b1b802af1 /sway/desktop/output.c
parentMerge pull request #3116 from harishkrupo/master (diff)
downloadsway-2afd930914c9d31ed1da5ffd80b18f029e84f8c5.tar.gz
sway-2afd930914c9d31ed1da5ffd80b18f029e84f8c5.tar.zst
sway-2afd930914c9d31ed1da5ffd80b18f029e84f8c5.zip
Use #if instead of #ifdef for WLR_HAS_*
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index d48ddef3..c53a9c73 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -469,15 +469,6 @@ void output_damage_box(struct sway_output *output, struct wlr_box *_box) {
469 wlr_output_damage_add_box(output->damage, &box); 469 wlr_output_damage_add_box(output->damage, &box);
470} 470}
471 471
472static void output_damage_whole_container_iterator(struct sway_container *con,
473 void *data) {
474 if (!sway_assert(con->view, "expected a view")) {
475 return;
476 }
477 struct sway_output *output = data;
478 output_damage_view(output, con->view, true);
479}
480
481void output_damage_whole_container(struct sway_output *output, 472void output_damage_whole_container(struct sway_output *output,
482 struct sway_container *con) { 473 struct sway_container *con) {
483 // Pad the box by 1px, because the width is a double and might be a fraction 474 // Pad the box by 1px, because the width is a double and might be a fraction