summaryrefslogtreecommitdiffstats
path: root/sway/container.c
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-26 23:53:20 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-11-27 17:58:10 +0100
commit2d0f78c0d6fb67b38c056856608708be610b7096 (patch)
treef87d318d7701b572932687a1f388af2ec6458b15 /sway/container.c
parentcommands: code formatting: Sort list of commands by alphabet. (diff)
downloadsway-2d0f78c0d6fb67b38c056856608708be610b7096.tar.gz
sway-2d0f78c0d6fb67b38c056856608708be610b7096.tar.zst
sway-2d0f78c0d6fb67b38c056856608708be610b7096.zip
workspace: Learn sticky.
A floating window that's sticky will move to the new active workspace whenever the workspace on the same output changes.
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c
index 1634cce0..ba37d7c8 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -226,6 +226,7 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle) {
226 view->app_id = app_id ? strdup(app_id) : NULL; 226 view->app_id = app_id ? strdup(app_id) : NULL;
227 view->visible = true; 227 view->visible = true;
228 view->is_focused = true; 228 view->is_focused = true;
229 view->sticky = false;
229 // Setup geometry 230 // Setup geometry
230 const struct wlc_geometry* geometry = wlc_view_get_geometry(handle); 231 const struct wlc_geometry* geometry = wlc_view_get_geometry(handle);
231 view->width = 0; 232 view->width = 0;
@@ -261,6 +262,7 @@ swayc_t *new_floating_view(wlc_handle handle) {
261 const char *app_id = wlc_view_get_app_id(handle); 262 const char *app_id = wlc_view_get_app_id(handle);
262 view->app_id = app_id ? strdup(app_id) : NULL; 263 view->app_id = app_id ? strdup(app_id) : NULL;
263 view->visible = true; 264 view->visible = true;
265 view->sticky = false;
264 266
265 // Set the geometry of the floating view 267 // Set the geometry of the floating view
266 const struct wlc_geometry* geometry = wlc_view_get_geometry(handle); 268 const struct wlc_geometry* geometry = wlc_view_get_geometry(handle);