aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-17 11:37:19 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-17 11:37:19 -0400
commitb48e8d1b178f2c713579dc532ff4be6edfccc5bc (patch)
treef9da3981625cd2235961f8efee7c4f3a94649241 /include
parentbe2635daa6b041de4dfb24952e96779a505b1b09 (diff)
parentc9ce8bf1bd0f4cfb459bcb7d3ec45429c0a81293 (diff)
Merge pull request #54 from Luminarys/master
Added in basic floating support
Diffstat (limited to 'include')
-rw-r--r--include/container.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h
index dd934be6..e395a55b 100644
--- a/include/container.h
+++ b/include/container.h
@@ -36,16 +36,24 @@ 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;
+ 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;
};
@@ -57,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);