mirror of
https://github.com/swaywm/sway.git
synced 2025-11-04 13:29:52 -05:00
Only call view_set_tiled when switching floating mode
Otherwise it repeatedly sets the view's border to the config's default.
This commit is contained in:
parent
4afa18a0c0
commit
f156a25e64
2 changed files with 1 additions and 4 deletions
|
|
@ -164,9 +164,6 @@ void view_init_floating(struct sway_view *view) {
|
|||
view->border_left = view->border_right = true;
|
||||
|
||||
container_set_geometry_from_floating_view(view->swayc);
|
||||
|
||||
// Don't maximize floating windows
|
||||
view_set_tiled(view, false);
|
||||
}
|
||||
|
||||
void view_autoconfigure(struct sway_view *view) {
|
||||
|
|
@ -278,7 +275,6 @@ void view_autoconfigure(struct sway_view *view) {
|
|||
view->y = y;
|
||||
view->width = width;
|
||||
view->height = height;
|
||||
view_set_tiled(view, true);
|
||||
}
|
||||
|
||||
void view_set_activated(struct sway_view *view, bool activated) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue