view: adjust position according to declared top left corner

This commit is contained in:
Jonathan GUILLOT 2024-01-15 15:50:46 +01:00
parent 560e9ff3ef
commit 44fb937f8e
4 changed files with 22 additions and 18 deletions

2
view.h
View file

@ -37,7 +37,7 @@ struct cg_view {
struct cg_view_impl {
char *(*get_title)(struct cg_view *view);
void (*get_geometry)(struct cg_view *view, int *width_out, int *height_out);
void (*get_geometry)(struct cg_view *view, struct wlr_box *view_box);
bool (*is_primary)(struct cg_view *view);
bool (*is_transient_for)(struct cg_view *child, struct cg_view *parent);
void (*activate)(struct cg_view *view, bool activate);