2018-04-07 01:49:27 +10:00
|
|
|
#ifndef SWAY_DEBUG_H
|
|
|
|
#define SWAY_DEBUG_H
|
2018-08-18 16:58:50 +10:00
|
|
|
#include <stdbool.h>
|
2018-04-07 01:49:27 +10:00
|
|
|
|
2018-08-18 16:58:50 +10:00
|
|
|
struct sway_debug {
|
|
|
|
bool noatomic; // Ignore atomic layout updates
|
|
|
|
bool render_tree; // Render the tree overlay
|
|
|
|
bool txn_timings; // Log verbose messages about transactions
|
|
|
|
bool txn_wait; // Always wait for the timeout before applying
|
2018-08-19 11:29:59 +10:00
|
|
|
|
|
|
|
enum {
|
|
|
|
DAMAGE_DEFAULT, // Default behaviour
|
|
|
|
DAMAGE_HIGHLIGHT, // Highlight regions of the screen being damaged
|
|
|
|
DAMAGE_RERENDER, // Render the full output when any damage occurs
|
|
|
|
} damage;
|
2018-08-18 16:58:50 +10:00
|
|
|
};
|
2018-04-07 01:49:27 +10:00
|
|
|
|
2018-08-18 16:58:50 +10:00
|
|
|
extern struct sway_debug debug;
|
2018-07-15 01:24:22 +10:00
|
|
|
|
2018-08-18 16:58:50 +10:00
|
|
|
void update_debug_tree();
|
2018-07-15 01:24:22 +10:00
|
|
|
|
2018-04-07 01:49:27 +10:00
|
|
|
#endif
|