aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 11:49:27 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 11:49:27 -0400
commit603e0e42c577026f1c688c393989e65dc3482808 (patch)
tree7e2635f8745ed6141f900359eeff9b8d9f418cea /sway/main.c
parentFix splitting workspaces (diff)
downloadsway-603e0e42c577026f1c688c393989e65dc3482808.tar.gz
sway-603e0e42c577026f1c688c393989e65dc3482808.tar.zst
sway-603e0e42c577026f1c688c393989e65dc3482808.zip
Add debug tree view
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c
index e7f8ddd3..efb674b6 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -17,6 +17,7 @@
17#endif 17#endif
18#include <wlr/util/log.h> 18#include <wlr/util/log.h>
19#include "sway/config.h" 19#include "sway/config.h"
20#include "sway/debug.h"
20#include "sway/server.h" 21#include "sway/server.h"
21#include "sway/tree/layout.h" 22#include "sway/tree/layout.h"
22#include "sway/ipc-server.h" 23#include "sway/ipc-server.h"
@@ -288,7 +289,7 @@ int main(int argc, char **argv) {
288 int c; 289 int c;
289 while (1) { 290 while (1) {
290 int option_index = 0; 291 int option_index = 0;
291 c = getopt_long(argc, argv, "hCdvVc:", long_options, &option_index); 292 c = getopt_long(argc, argv, "hCdDvVc:", long_options, &option_index);
292 if (c == -1) { 293 if (c == -1) {
293 break; 294 break;
294 } 295 }
@@ -306,6 +307,9 @@ int main(int argc, char **argv) {
306 case 'd': // debug 307 case 'd': // debug
307 debug = 1; 308 debug = 1;
308 break; 309 break;
310 case 'D': // extended debug options
311 enable_debug_tree = true;
312 break;
309 case 'v': // version 313 case 'v': // version
310 fprintf(stdout, "sway version " SWAY_VERSION "\n"); 314 fprintf(stdout, "sway version " SWAY_VERSION "\n");
311 exit(EXIT_SUCCESS); 315 exit(EXIT_SUCCESS);