mirror of
https://github.com/swaywm/sway.git
synced 2025-11-22 06:59:48 -05:00
Rename set_maximized functions to set_tiled
This commit is contained in:
parent
5d69a56209
commit
02de2a6f65
6 changed files with 16 additions and 16 deletions
|
|
@ -921,7 +921,7 @@ void container_set_floating(struct sway_container *container, bool enable) {
|
|||
container->width = container->parent->width;
|
||||
container->height = container->parent->height;
|
||||
if (container->type == C_VIEW) {
|
||||
view_set_maximized(container->sway_view, true);
|
||||
view_set_tiled(container->sway_view, true);
|
||||
}
|
||||
container->is_sticky = false;
|
||||
container_reap_empty_recursive(workspace->sway_workspace->floating);
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ static void view_autoconfigure_floating(struct sway_view *view) {
|
|||
int ly = output->y + (ws->height - height) / 2;
|
||||
|
||||
view->border_left = view->border_right = view->border_bottom = true;
|
||||
view_set_maximized(view, false);
|
||||
view_set_tiled(view, false);
|
||||
view_configure(view, lx, ly, width, height);
|
||||
}
|
||||
|
||||
|
|
@ -257,9 +257,9 @@ void view_set_activated(struct sway_view *view, bool activated) {
|
|||
}
|
||||
}
|
||||
|
||||
void view_set_maximized(struct sway_view *view, bool maximized) {
|
||||
if (view->impl->set_maximized) {
|
||||
view->impl->set_maximized(view, maximized);
|
||||
void view_set_tiled(struct sway_view *view, bool tiled) {
|
||||
if (view->impl->set_tiled) {
|
||||
view->impl->set_tiled(view, tiled);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue