Make monitor_repaint an option

This is a potentially useful feature for debugging the xrender backend,
so make it a commandline option rather than an obscure compiler flag.

Also this is only usable with xrender, for glx there are better tools
for debugging.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-10-21 23:56:53 +01:00
parent 551d487836
commit 309a4cec79
2 changed files with 42 additions and 26 deletions

View File

@ -34,7 +34,6 @@
// #define DEBUG_GLX_ERR 1
// #define DEBUG_GLX_MARK 1
// #define DEBUG_GLX_PAINTREG 1
// #define MONITOR_REPAINT 1
// Whether to enable PCRE regular expression support in blacklists, enabled
// by default
@ -447,6 +446,8 @@ typedef struct ev_session_prepare ev_session_prepare;
/// Structure representing all options.
typedef struct options_t {
// === Debugging ===
bool monitor_repaint;
// === General ===
/// The configuration file we used.
char *config_file;