mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Revert "Don't unmaximize floating views"
This reverts commit 97672295ed.
This commit is contained in:
parent
53c4467573
commit
e0d0e8f840
7 changed files with 51 additions and 6 deletions
|
|
@ -141,6 +141,9 @@ static void view_autoconfigure_floating(struct sway_view *view) {
|
|||
view->border_top = view->border_bottom = true;
|
||||
view->border_left = view->border_right = true;
|
||||
|
||||
// Don't maximize floating windows
|
||||
view_set_tiled(view, false);
|
||||
|
||||
view_configure(view, lx, ly, width, height);
|
||||
}
|
||||
|
||||
|
|
@ -248,6 +251,7 @@ void view_autoconfigure(struct sway_view *view) {
|
|||
|
||||
view->x = x;
|
||||
view->y = y;
|
||||
view_set_tiled(view, true);
|
||||
view_configure(view, x, y, width, height);
|
||||
}
|
||||
|
||||
|
|
@ -257,6 +261,13 @@ void view_set_activated(struct sway_view *view, bool activated) {
|
|||
}
|
||||
}
|
||||
|
||||
void view_set_tiled(struct sway_view *view, bool tiled) {
|
||||
view->border = tiled ? config->border : B_NONE;
|
||||
if (view->impl->set_tiled) {
|
||||
view->impl->set_tiled(view, tiled);
|
||||
}
|
||||
}
|
||||
|
||||
// Set fullscreen, but without IPC events or arranging windows.
|
||||
void view_set_fullscreen_raw(struct sway_view *view, bool fullscreen) {
|
||||
if (view->is_fullscreen == fullscreen) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue