From 05f969074e39c5adeb5d7390d8255b83cf351866 Mon Sep 17 00:00:00 2001 From: Luminarys Date: Mon, 17 Aug 2015 00:38:34 -0500 Subject: Added in basic floating toggling --- include/container.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/container.h b/include/container.h index dd934be6..7560ddb8 100644 --- a/include/container.h +++ b/include/container.h @@ -40,12 +40,17 @@ struct sway_container { bool visible; + bool is_floating; + int weight; char *name; list_t *children; + // Special list for floating windows in workspaces + list_t *floating; + struct sway_container *parent; struct sway_container *focused; }; -- cgit v1.2.3 From 47ec999e7184d29c2911af20ce696d1f4e948e29 Mon Sep 17 00:00:00 2001 From: Luminarys Date: Mon, 17 Aug 2015 10:18:06 -0500 Subject: Fixes to floating and umanaged views --- include/container.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/container.h b/include/container.h index 7560ddb8..3136e565 100644 --- a/include/container.h +++ b/include/container.h @@ -36,6 +36,9 @@ struct sway_container { // Not including borders or margins int width, height; + // Used for setting floating geometry + int desired_width, desired_height; + int x, y; bool visible; @@ -62,6 +65,8 @@ swayc_t *new_workspace(swayc_t * output, const char *name); swayc_t *new_container(swayc_t *child, enum swayc_layouts layout); //Creates view as a sibling of current focused container, or as child of a workspace swayc_t *new_view(swayc_t *sibling, wlc_handle handle); +//Creates view as a new floating view which is in the active workspace +swayc_t *new_floating_view(wlc_handle handle); swayc_t *destroy_output(swayc_t *output); -- cgit v1.2.3 From c9ce8bf1bd0f4cfb459bcb7d3ec45429c0a81293 Mon Sep 17 00:00:00 2001 From: Luminarys Date: Mon, 17 Aug 2015 10:34:39 -0500 Subject: Style and other minor fixes --- include/container.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/container.h b/include/container.h index 3136e565..e395a55b 100644 --- a/include/container.h +++ b/include/container.h @@ -36,14 +36,14 @@ struct sway_container { // Not including borders or margins int width, height; - // Used for setting floating geometry - int desired_width, desired_height; + // Used for setting floating geometry + int desired_width, desired_height; int x, y; bool visible; - bool is_floating; + bool is_floating; int weight; @@ -51,7 +51,7 @@ struct sway_container { list_t *children; - // Special list for floating windows in workspaces + // Special list for floating windows in workspaces list_t *floating; struct sway_container *parent; -- cgit v1.2.3