view: close popups on focus-change

...and the following:

- mouse-event on server-side-decoration
- window switching
This commit is contained in:
Johan Malm 2023-03-11 19:45:47 +00:00
parent 44c6cf6c1f
commit 216a83c1f9
6 changed files with 39 additions and 0 deletions

View file

@ -24,6 +24,7 @@ struct view;
struct view_impl {
void (*configure)(struct view *view, struct wlr_box geo);
void (*close)(struct view *view);
void (*close_popups)(struct view *view);
const char *(*get_string_prop)(struct view *view, const char *prop);
void (*map)(struct view *view);
void (*set_activated)(struct view *view, bool activated);
@ -134,6 +135,7 @@ struct xdg_toplevel_view {
void view_set_activated(struct view *view);
void view_set_output(struct view *view, struct output *output);
void view_close(struct view *view);
void view_close_popups(struct view *view);
/**
* view_move_resize - resize and move view