mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-04-09 08:21:23 -04:00
parent
1f85e1061b
commit
112a662ebc
3 changed files with 100 additions and 0 deletions
15
seat.h
15
seat.h
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/types/wlr_cursor.h>
|
||||
#include <wlr/types/wlr_data_device.h>
|
||||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/types/wlr_xcursor_manager.h>
|
||||
|
|
@ -37,6 +38,9 @@ struct cg_seat {
|
|||
struct wl_listener touch_up;
|
||||
struct wl_listener touch_motion;
|
||||
|
||||
struct wl_list drag_icons;
|
||||
struct wl_listener new_drag_icon;
|
||||
|
||||
struct wl_listener request_set_cursor;
|
||||
};
|
||||
|
||||
|
|
@ -66,6 +70,17 @@ struct cg_touch {
|
|||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
struct cg_drag_icon {
|
||||
struct wl_list link; // seat::drag_icons
|
||||
struct cg_seat *seat;
|
||||
struct wlr_drag_icon *wlr_drag_icon;
|
||||
double x;
|
||||
double y;
|
||||
|
||||
struct wl_listener surface_commit;
|
||||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
struct cg_seat *cg_seat_create(struct cg_server *server);
|
||||
void cg_seat_destroy(struct cg_seat *seat);
|
||||
struct cg_view *seat_get_focus(struct cg_seat *seat);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue