mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
The view_adjust_floating_geometry function is called when un-maximizing a window or changing the output layout to ensure that views are well placed. Rather than always centering these views should they fall offscren, use the automatic placement strategy if so configured.
11 lines
266 B
C
11 lines
266 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_PLACEMENT_H
|
|
#define LABWC_PLACEMENT_H
|
|
|
|
#include <stdbool.h>
|
|
#include <wlr/util/box.h>
|
|
#include "view.h"
|
|
|
|
bool placement_find_best(struct view *view, struct wlr_box *geometry);
|
|
|
|
#endif /* LABWC_PLACEMENT_H */
|