summaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-07 11:19:25 -0400
committerLibravatar GitHub <noreply@github.com>2018-04-07 11:19:25 -0400
commitf5a9bd5cb75b37376b98eadbff2facb7e0021d57 (patch)
treef72219a5a2adec3380da5269fee025715f7bf333 /sway/main.c
parentMerge pull request #1762 from DanySpin97/wlroots (diff)
parentDon't rejigger if parent has two children (diff)
downloadsway-f5a9bd5cb75b37376b98eadbff2facb7e0021d57.tar.gz
sway-f5a9bd5cb75b37376b98eadbff2facb7e0021d57.tar.zst
sway-f5a9bd5cb75b37376b98eadbff2facb7e0021d57.zip
Merge pull request #1700 from swaywm/move-cmd-full
Implement move [left|right|up|down]
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);