aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-19 11:29:59 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-19 16:17:24 +1000
commitf9563d88f30fd70c5999520fa7f4b3d0dffd1a4c (patch)
treee042ef90214040470a7a3e6371a23d97032786c6 /sway/desktop
parent8d1dd038233cf946b36813c4c8508c17f4cda0fc (diff)
downloadsway-f9563d88f30fd70c5999520fa7f4b3d0dffd1a4c.tar.xz
Use enum for damage debug options
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/render.c6
-rw-r--r--sway/desktop/transaction.c4
2 files changed, 4 insertions, 6 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 8fc642a6..f6afb82b 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -834,9 +834,9 @@ void output_render(struct sway_output *output, struct timespec *when,
goto renderer_end;
}
- if (debug.highlight_damage) {
+ if (debug.damage == DAMAGE_HIGHLIGHT) {
wlr_renderer_clear(renderer, (float[]){1, 1, 0, 1});
- } else if (debug.nodamage) {
+ } else if (debug.damage == DAMAGE_RERENDER) {
int width, height;
wlr_output_transformed_resolution(wlr_output, &width, &height);
pixman_region32_union_rect(damage, damage, 0, 0, width, height);
@@ -918,7 +918,7 @@ renderer_end:
wlr_render_texture(renderer, root_container.sway_root->debug_tree,
wlr_output->transform_matrix, 0, 40, 1);
}
- if (debug.highlight_damage) {
+ if (debug.damage == DAMAGE_HIGHLIGHT) {
int width, height;
wlr_output_transformed_resolution(wlr_output, &width, &height);
pixman_region32_union_rect(damage, damage, 0, 0, width, height);
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 219f5362..8688fa13 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -345,9 +345,7 @@ static void set_instruction_ready(
}
instruction->container->instruction = NULL;
- if (!txn_debug) {
- transaction_progress_queue();
- }
+ transaction_progress_queue();
}
void transaction_notify_view_ready_by_serial(struct sway_view *view,