aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/commands.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-10 14:10:09 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-12 10:45:54 +1000
commitb4a0363d1721b2ad2d5afb65764ecb575bd55fa4 (patch)
treef6ec316550cd113040e82a7f0cee0429fff349e5 /include/sway/commands.h
parentMerge pull request #2452 from janza/position-command-fix-args (diff)
downloadsway-b4a0363d1721b2ad2d5afb65764ecb575bd55fa4.tar.gz
sway-b4a0363d1721b2ad2d5afb65764ecb575bd55fa4.tar.zst
sway-b4a0363d1721b2ad2d5afb65764ecb575bd55fa4.zip
Implement resizing tiled containers via cursor
* The OP_RESIZE seat operation has been renamed to OP_RESIZE_FLOATING, and OP_RESIZE_TILING has been introduced. * Similar to the above, seat_begin_resize and handle_resize_motion have been renamed and tiling variants introduced. * resize.c's resize_tiled has to be used, so container_resize_tiled has been introduced in resize.c to allow external code to call it.
Diffstat (limited to 'include/sway/commands.h')
-rw-r--r--include/sway/commands.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index f83907b2..545b21e6 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -1,6 +1,7 @@
1#ifndef _SWAY_COMMANDS_H 1#ifndef _SWAY_COMMANDS_H
2#define _SWAY_COMMANDS_H 2#define _SWAY_COMMANDS_H
3 3
4#include <wlr/util/edges.h>
4#include "config.h" 5#include "config.h"
5 6
6typedef struct cmd_results *sway_cmd(int argc, char **argv); 7typedef struct cmd_results *sway_cmd(int argc, char **argv);
@@ -84,6 +85,12 @@ char *cmd_results_to_json(struct cmd_results *results);
84struct cmd_results *add_color(const char *name, 85struct cmd_results *add_color(const char *name,
85 char *buffer, const char *color); 86 char *buffer, const char *color);
86 87
88/**
89 * TODO: Move this function and its dependent functions to container.c.
90 */
91void container_resize_tiled(struct sway_container *parent, enum wlr_edges edge,
92 int amount);
93
87sway_cmd cmd_assign; 94sway_cmd cmd_assign;
88sway_cmd cmd_bar; 95sway_cmd cmd_bar;
89sway_cmd cmd_bindcode; 96sway_cmd cmd_bindcode;