Add headless input devices

This commit is contained in:
emersion 2017-12-17 18:49:20 +01:00
parent 0256de0002
commit bc5bdb7793
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 136 additions and 19 deletions

View file

@ -10,11 +10,12 @@ struct wlr_headless_backend {
struct wlr_egl egl;
struct wl_display *display;
struct wl_list outputs;
struct wl_list input_devices;
struct wl_listener display_destroy;
bool started;
};
struct wlr_headless_backend_output {
struct wlr_headless_output {
struct wlr_output wlr_output;
struct wlr_headless_backend *backend;
@ -25,4 +26,10 @@ struct wlr_headless_backend_output {
int frame_delay; // ms
};
struct wlr_headless_input_device {
struct wlr_input_device wlr_input_device;
struct wlr_headless_backend *backend;
};
#endif