summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-07 18:36:20 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-09 23:38:29 +1000
commitab8a86369c01c7146991ff4ae2ef04b0a1db06ca (patch)
tree9ec17bf453a32d7fdd7f621896c9b89c00af8755 /include
parentMerge pull request #2226 from emersion/swaylock-daemonize-after-lock (diff)
downloadsway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.tar.gz
sway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.tar.zst
sway-ab8a86369c01c7146991ff4ae2ef04b0a1db06ca.zip
Implement some floating move commands
This implements the following for floating containers: * move <direction> <amount> * move [absolute] position <x> <y> * move [absolute] position mouse
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop.h4
-rw-r--r--include/sway/output.h2
-rw-r--r--include/sway/tree/container.h6
3 files changed, 12 insertions, 0 deletions
diff --git a/include/sway/desktop.h b/include/sway/desktop.h
index f1ad759a..348fb187 100644
--- a/include/sway/desktop.h
+++ b/include/sway/desktop.h
@@ -1,4 +1,8 @@
1#include <wlr/types/wlr_surface.h> 1#include <wlr/types/wlr_surface.h>
2 2
3struct sway_container;
4
3void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly, 5void desktop_damage_surface(struct wlr_surface *surface, double lx, double ly,
4 bool whole); 6 bool whole);
7
8void desktop_damage_whole_container(struct sway_container *con);
diff --git a/include/sway/output.h b/include/sway/output.h
index b6cda83c..bd25e76e 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -97,4 +97,6 @@ void output_drag_icons_for_each_surface(struct wl_list *drag_icons,
97 struct sway_output *output, struct root_geometry *geo, 97 struct sway_output *output, struct root_geometry *geo,
98 wlr_surface_iterator_func_t iterator, void *user_data); 98 wlr_surface_iterator_func_t iterator, void *user_data);
99 99
100struct sway_container *output_get_active_workspace(struct sway_output *output);
101
100#endif 102#endif
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 728daa84..a69da9db 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -297,4 +297,10 @@ bool container_is_floating(struct sway_container *container);
297 */ 297 */
298void container_get_box(struct sway_container *container, struct wlr_box *box); 298void container_get_box(struct sway_container *container, struct wlr_box *box);
299 299
300/**
301 * Move a floating container to a new layout-local position.
302 */
303void container_floating_move_to(struct sway_container *con,
304 double lx, double ly);
305
300#endif 306#endif