aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-18 16:58:50 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-19 16:17:24 +1000
commit8d1dd038233cf946b36813c4c8508c17f4cda0fc (patch)
treee672976231d33467da6c8a03633c604eb0c8deb8 /sway/server.c
parentMerge pull request #2453 from ianyfan/commands (diff)
downloadsway-8d1dd038233cf946b36813c4c8508c17f4cda0fc.tar.gz
sway-8d1dd038233cf946b36813c4c8508c17f4cda0fc.tar.zst
sway-8d1dd038233cf946b36813c4c8508c17f4cda0fc.zip
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.
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/server.c b/sway/server.c
index e8dc63be..00acaa01 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -128,10 +128,11 @@ bool server_init(struct sway_server *server) {
128 return false; 128 return false;
129 } 129 }
130 130
131 const char *debug = getenv("SWAY_DEBUG"); 131 // This may have been set already via -Dtxn-timeout
132 if (debug != NULL && strcmp(debug, "txn_timings") == 0) { 132 if (!server->txn_timeout_ms) {
133 server->debug_txn_timings = true; 133 server->txn_timeout_ms = 200;
134 } 134 }
135
135 server->dirty_containers = create_list(); 136 server->dirty_containers = create_list();
136 server->transactions = create_list(); 137 server->transactions = create_list();
137 138