diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-14 18:30:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-14 18:30:59 -0700 |
commit | f4edf84b4f2f052bbdc9d23d620ceac8a7f1653a (patch) | |
tree | b5876df0592a14729b09de80fc7fabfaf01065b4 /sway/desktop/render.c | |
parent | dbeb03aa680dde36bd917057a54dc2651b780f27 (diff) | |
parent | b1afcc69fa70c20d815940fc25189063ed59ae0f (diff) | |
download | sway-f4edf84b4f2f052bbdc9d23d620ceac8a7f1653a.tar.xz |
Merge pull request #2273 from swaywm/debug-flags
Add extended debugging flags
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index b370f8a2..4bfc573b 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -15,6 +15,7 @@ #include <wlr/util/region.h> #include "log.h" #include "sway/config.h" +#include "sway/debug.h" #include "sway/input/input-manager.h" #include "sway/input/seat.h" #include "sway/layers.h" @@ -786,6 +787,8 @@ static void render_floating(struct sway_output *soutput, } } +const char *damage_debug = NULL; + void output_render(struct sway_output *output, struct timespec *when, pixman_region32_t *damage) { struct wlr_output *wlr_output = output->wlr_output; @@ -805,7 +808,6 @@ void output_render(struct sway_output *output, struct timespec *when, goto renderer_end; } - const char *damage_debug = getenv("SWAY_DAMAGE_DEBUG"); if (damage_debug != NULL) { if (strcmp(damage_debug, "highlight") == 0) { wlr_renderer_clear(renderer, (float[]){1, 1, 0, 1}); |