diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-27 10:20:16 -0700 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-11-27 10:20:16 -0700 |
commit | b7702eb34c9d5485145b0483891e710fae12e967 (patch) | |
tree | f87d318d7701b572932687a1f388af2ec6458b15 /sway/container.c | |
parent | cbd73487046820105a32c64ecf86554876f8f41b (diff) | |
parent | 2d0f78c0d6fb67b38c056856608708be610b7096 (diff) |
Merge pull request #266 from sce/sticky_floats_0
workspace: Learn sticky.
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 2 |
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) { view->app_id = app_id ? strdup(app_id) : NULL; view->visible = true; view->is_focused = true; + view->sticky = false; // Setup geometry const struct wlc_geometry* geometry = wlc_view_get_geometry(handle); view->width = 0; @@ -261,6 +262,7 @@ swayc_t *new_floating_view(wlc_handle handle) { const char *app_id = wlc_view_get_app_id(handle); view->app_id = app_id ? strdup(app_id) : NULL; view->visible = true; + view->sticky = false; // Set the geometry of the floating view const struct wlc_geometry* geometry = wlc_view_get_geometry(handle); |