mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Send surface enter/leave events to view children
This commit is contained in:
parent
d77a0119f4
commit
290c916290
4 changed files with 49 additions and 2 deletions
|
|
@ -28,6 +28,8 @@ struct sway_view_impl {
|
|||
void (*configure)(struct sway_view *view, double ox, double oy, int width,
|
||||
int height);
|
||||
void (*set_activated)(struct sway_view *view, bool activated);
|
||||
void (*for_each_surface)(struct sway_view *view,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data);
|
||||
void (*close)(struct sway_view *view);
|
||||
void (*destroy)(struct sway_view *view);
|
||||
};
|
||||
|
|
@ -159,6 +161,9 @@ void view_damage_whole(struct sway_view *view);
|
|||
|
||||
void view_damage_from(struct sway_view *view);
|
||||
|
||||
void view_for_each_surface(struct sway_view *view,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data);
|
||||
|
||||
// view implementation
|
||||
|
||||
void view_init(struct sway_view *view, enum sway_view_type type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue