mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Merge pull request #2478 from RyanDwyer/standardise-debug
Standardise debug variables
This commit is contained in:
commit
9f913614ca
7 changed files with 69 additions and 81 deletions
|
|
@ -1,15 +1,22 @@
|
|||
#ifndef SWAY_DEBUG_H
|
||||
#define SWAY_DEBUG_H
|
||||
#include <stdbool.h>
|
||||
|
||||
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
|
||||
|
||||
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;
|
||||
|
||||
// Tree
|
||||
extern bool enable_debug_tree;
|
||||
void update_debug_tree();
|
||||
|
||||
// Damage
|
||||
extern const char *damage_debug;
|
||||
|
||||
// Transactions
|
||||
extern int txn_timeout_ms;
|
||||
extern bool txn_debug;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -54,8 +54,7 @@ struct sway_server {
|
|||
struct wl_listener server_decoration;
|
||||
struct wl_list decorations; // sway_server_decoration::link
|
||||
|
||||
bool debug_txn_timings;
|
||||
|
||||
size_t txn_timeout_ms;
|
||||
list_t *transactions;
|
||||
list_t *dirty_containers;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue