mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Standardise debug variables
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.
This commit is contained in:
parent
389d159c81
commit
8d1dd03823
7 changed files with 64 additions and 78 deletions
|
|
@ -128,10 +128,11 @@ bool server_init(struct sway_server *server) {
|
|||
return false;
|
||||
}
|
||||
|
||||
const char *debug = getenv("SWAY_DEBUG");
|
||||
if (debug != NULL && strcmp(debug, "txn_timings") == 0) {
|
||||
server->debug_txn_timings = true;
|
||||
// This may have been set already via -Dtxn-timeout
|
||||
if (!server->txn_timeout_ms) {
|
||||
server->txn_timeout_ms = 200;
|
||||
}
|
||||
|
||||
server->dirty_containers = create_list();
|
||||
server->transactions = create_list();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue