diff options
| author | Drew DeVault <[email protected]> | 2018-07-14 11:24:22 -0400 | 
|---|---|---|
| committer | Drew DeVault <[email protected]> | 2018-07-14 20:44:32 -0400 | 
| commit | b1afcc69fa70c20d815940fc25189063ed59ae0f (patch) | |
| tree | b5876df0592a14729b09de80fc7fabfaf01065b4 /sway/desktop/render.c | |
| parent | dbeb03aa680dde36bd917057a54dc2651b780f27 (diff) | |
Add extended debugging flags
We currently have several ways of setting debug flags, including command
line arguments, environment variables, and compile-time macros. This
replaces the lot with command line 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}); | 
