HiDPI: send enter and leave events to views when switching monitors

This commit is contained in:
ARDiDo 2021-11-15 14:59:03 -05:00
parent 1d92404108
commit 6698ca7300
4 changed files with 29 additions and 10 deletions

View file

@ -213,6 +213,7 @@ struct view {
enum view_type type;
const struct view_impl *impl;
struct wl_list link;
struct output *output;
union {
struct wlr_xdg_surface *xdg_surface;
@ -376,8 +377,7 @@ void view_for_each_surface(struct view *view,
wlr_surface_iterator_func_t iterator, void *user_data);
void view_for_each_popup_surface(struct view *view,
wlr_surface_iterator_func_t iterator, void *data);
void view_output_enter(struct view *view, struct wlr_output *wlr_output);
void view_output_leave(struct view *view, struct wlr_output *wlr_output);
void view_discover_output(struct view *view);
void view_move_to_edge(struct view *view, const char *direction);
void view_snap_to_edge(struct view *view, const char *direction);
const char *view_get_string_prop(struct view *view, const char *prop);