summaryrefslogtreecommitdiffstats
path: root/include/container.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/container.h')
-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 {
36 // Not including borders or margins 36 // Not including borders or margins
37 int width, height; 37 int width, height;
38 38
39 // Used for setting floating geometry
40 int desired_width, desired_height;
41
39 int x, y; 42 int x, y;
40 43
41 bool visible; 44 bool visible;
42 45
46 bool is_floating;
47
43 int weight; 48 int weight;
44 49
45 char *name; 50 char *name;
46 51
47 list_t *children; 52 list_t *children;
48 53
54 // Special list for floating windows in workspaces
55 list_t *floating;
56
49 struct sway_container *parent; 57 struct sway_container *parent;
50 struct sway_container *focused; 58 struct sway_container *focused;
51}; 59};
@@ -57,6 +65,8 @@ swayc_t *new_workspace(swayc_t * output, const char *name);
57swayc_t *new_container(swayc_t *child, enum swayc_layouts layout); 65swayc_t *new_container(swayc_t *child, enum swayc_layouts layout);
58//Creates view as a sibling of current focused container, or as child of a workspace 66//Creates view as a sibling of current focused container, or as child of a workspace
59swayc_t *new_view(swayc_t *sibling, wlc_handle handle); 67swayc_t *new_view(swayc_t *sibling, wlc_handle handle);
68//Creates view as a new floating view which is in the active workspace
69swayc_t *new_floating_view(wlc_handle handle);
60 70
61 71
62swayc_t *destroy_output(swayc_t *output); 72swayc_t *destroy_output(swayc_t *output);