mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 22:43:58 +01:00
8d1dd03823
This makes all debug options stored in a single struct rather than in various places, changes/fixes the behaviour of existing options, and introduces some new options. * Fixes damage issues with `-Drender-tree` texture (by removing scissor) * Offsets the render tree overlay's `y` position for those who have swaybar at the top * Replaces `-Ddamage=rerender` with `-Dnodamage` * Replaces `-Ddamage=highlight` with `-Dhighlight-damage` * Replaces `-Dtxn-debug` with `-Dtxn-wait` * Introduces `-Dnoatomic` * Removes the `create_time` and `ms_arranging` figures from transactions and the log message. Transactions are created after arranging and the create time is of no significance. * Fixes `-Dtxn-debug` (now `-Dtxn-wait`) not working.
19 lines
537 B
C
19 lines
537 B
C
#ifndef SWAY_DEBUG_H
|
|
#define SWAY_DEBUG_H
|
|
#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
|
|
};
|
|
|
|
extern struct sway_debug debug;
|
|
|
|
void update_debug_tree();
|
|
|
|
#endif
|