mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Use enum for damage debug options
This commit is contained in:
parent
8d1dd03823
commit
f9563d88f3
4 changed files with 14 additions and 12 deletions
|
|
@ -3,12 +3,16 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
struct sway_debug {
|
||||
bool highlight_damage; // Highlight regions of the screen being damaged
|
||||
bool noatomic; // Ignore atomic layout updates
|
||||
bool nodamage; // Render the full output on each frame
|
||||
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
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
extern struct sway_debug debug;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue