Handle output enter/leave correctly

This commit is contained in:
Drew DeVault 2017-10-25 22:37:02 -04:00
parent 9861add146
commit a6930cd8ea
6 changed files with 51 additions and 32 deletions

View file

@ -48,7 +48,6 @@ enum roots_view_type {
struct roots_view {
struct roots_desktop *desktop;
struct roots_output *output;
double x, y;
float rotation;
// TODO: Something for roots-enforced width/height
@ -72,14 +71,14 @@ struct roots_view {
// configure event from the xdg_shell
// If not then this should follow the typical type/impl pattern we use
// elsewhere
void (*get_size)(struct roots_view *view, struct wlr_box *box);
void (*get_size)(const struct roots_view *view, struct wlr_box *box);
void (*activate)(struct roots_view *view, bool active);
void (*resize)(struct roots_view *view, uint32_t width, uint32_t height);
void (*set_position)(struct roots_view *view, double x, double y);
void (*close)(struct roots_view *view);
};
void view_get_size(struct roots_view *view, struct wlr_box *box);
void view_get_size(const struct roots_view *view, struct wlr_box *box);
void view_activate(struct roots_view *view, bool active);
void view_resize(struct roots_view *view, uint32_t width, uint32_t height);
void view_set_position(struct roots_view *view, double x, double y);