mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
workspace: Learn sticky.
A floating window that's sticky will move to the new active workspace whenever the workspace on the same output changes.
This commit is contained in:
parent
db642fc8c5
commit
2d0f78c0d6
5 changed files with 52 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue