diff options
author | emersion <contact@emersion.fr> | 2018-01-24 18:49:47 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-24 18:49:47 +0100 |
commit | 3f96427d0854ef38ee295724ebd36dcb74c0659c (patch) | |
tree | dcafc9e27ccd400a5ec7e6a0c78f2923c73d1f66 /include/rootston | |
parent | 6281deb90fa6a97835d5045a8be610556ab588fe (diff) | |
parent | 2ad7df868097d557ed3cc41dfa60e0637f8a08e8 (diff) |
Merge branch 'output-damage' of github.com:emersion/wlroots into output-damage
Diffstat (limited to 'include/rootston')
-rw-r--r-- | include/rootston/output.h | 5 | ||||
-rw-r--r-- | include/rootston/seat.h | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/rootston/output.h b/include/rootston/output.h index 89fe1d82..81f20788 100644 --- a/include/rootston/output.h +++ b/include/rootston/output.h @@ -37,9 +37,14 @@ struct roots_output { void output_add_notify(struct wl_listener *listener, void *data); void output_remove_notify(struct wl_listener *listener, void *data); +struct roots_view; +struct roots_drag_icon; + void output_damage_whole_view(struct roots_output *output, struct roots_view *view); void output_damage_from_view(struct roots_output *output, struct roots_view *view); +void output_damage_whole_drag_icon(struct roots_output *output, + struct roots_drag_icon *icon); #endif diff --git a/include/rootston/seat.h b/include/rootston/seat.h index f1061226..fa7d38df 100644 --- a/include/rootston/seat.h +++ b/include/rootston/seat.h @@ -46,6 +46,8 @@ struct roots_drag_icon { struct wlr_drag_icon *wlr_drag_icon; struct wl_list link; + double x, y; + struct wl_listener surface_commit; struct wl_listener map; struct wl_listener destroy; @@ -103,6 +105,10 @@ void roots_seat_begin_resize(struct roots_seat *seat, struct roots_view *view, void roots_seat_begin_rotate(struct roots_seat *seat, struct roots_view *view); struct roots_seat_view *roots_seat_view_from_view( struct roots_seat *seat, - struct roots_view *view); + struct roots_view *view); + +void roots_drag_icon_update_position(struct roots_drag_icon *icon); + +void roots_drag_icon_damage_whole(struct roots_drag_icon *icon); #endif |