aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2015-08-17 10:18:06 -0500
committerFurkan Sahin <furkan-dev@proton.me>2015-08-17 10:18:06 -0500
commitd676ba27547f754902143a48282ecb01a5f0f5fe (patch)
tree15e595e631b97210708ffae99684eb6e00a9c70c /include
parent7841a07f08d7ac898794a21ef882ddcdad9592ae (diff)
Fixes to floating and umanaged views
Diffstat (limited to 'include')
-rw-r--r--include/container.h5
1 files changed, 5 insertions, 0 deletions
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);