aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 11:49:27 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 11:49:27 -0400
commit603e0e42c577026f1c688c393989e65dc3482808 (patch)
tree7e2635f8745ed6141f900359eeff9b8d9f418cea /sway/desktop/output.c
parentFix splitting workspaces (diff)
downloadsway-603e0e42c577026f1c688c393989e65dc3482808.tar.gz
sway-603e0e42c577026f1c688c393989e65dc3482808.tar.zst
sway-603e0e42c577026f1c688c393989e65dc3482808.zip
Add debug tree view
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index aa18f1b8..ad777796 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -294,6 +294,11 @@ static void render_output(struct sway_output *output, struct timespec *when,
294 &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]); 294 &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]);
295 295
296renderer_end: 296renderer_end:
297 if (root_container.sway_root->debug_tree) {
298 wlr_render_texture(renderer, root_container.sway_root->debug_tree,
299 wlr_output->transform_matrix, 0, 0, 1);
300 }
301
297 wlr_renderer_end(renderer); 302 wlr_renderer_end(renderer);
298 if (!wlr_output_damage_swap_buffers(output->damage, when, damage)) { 303 if (!wlr_output_damage_swap_buffers(output->damage, when, damage)) {
299 return; 304 return;