diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-06 11:49:27 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-06 11:49:27 -0400 |
commit | 603e0e42c577026f1c688c393989e65dc3482808 (patch) | |
tree | 7e2635f8745ed6141f900359eeff9b8d9f418cea /sway/desktop | |
parent | a06052ad9da8f5e03b17aa791be49189f21b7a4f (diff) | |
download | sway-603e0e42c577026f1c688c393989e65dc3482808.tar.xz |
Add debug tree view
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 5 |
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, &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]); renderer_end: + if (root_container.sway_root->debug_tree) { + wlr_render_texture(renderer, root_container.sway_root->debug_tree, + wlr_output->transform_matrix, 0, 0, 1); + } + wlr_renderer_end(renderer); if (!wlr_output_damage_swap_buffers(output->damage, when, damage)) { return; |