mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Merge remote-tracking branch 'upstream/master' into output-damage
This commit is contained in:
commit
6281deb90f
15 changed files with 328 additions and 76 deletions
|
|
@ -64,6 +64,10 @@ struct roots_view {
|
|||
double x, y;
|
||||
float rotation;
|
||||
|
||||
bool decorated;
|
||||
int border_width;
|
||||
int titlebar_height;
|
||||
|
||||
bool maximized;
|
||||
struct roots_output *fullscreen_output;
|
||||
struct {
|
||||
|
|
@ -165,6 +169,19 @@ bool view_center(struct roots_view *view);
|
|||
void view_setup(struct roots_view *view);
|
||||
void view_teardown(struct roots_view *view);
|
||||
|
||||
void view_get_deco_box(const struct roots_view *view, struct wlr_box *box);
|
||||
|
||||
enum roots_deco_part {
|
||||
ROOTS_DECO_PART_NONE = 0,
|
||||
ROOTS_DECO_PART_TOP_BORDER = (1 << 0),
|
||||
ROOTS_DECO_PART_BOTTOM_BORDER = (1 << 1),
|
||||
ROOTS_DECO_PART_LEFT_BORDER = (1 << 2),
|
||||
ROOTS_DECO_PART_RIGHT_BORDER = (1 << 3),
|
||||
ROOTS_DECO_PART_TITLEBAR = (1 << 4),
|
||||
};
|
||||
|
||||
enum roots_deco_part view_get_deco_part(struct roots_view *view, double sx, double sy);
|
||||
|
||||
void view_child_init(struct roots_view_child *child, struct roots_view *view,
|
||||
struct wlr_surface *wlr_surface);
|
||||
void view_child_finish(struct roots_view_child *child);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue