From db0c3d79f8dc53e07d0215fd1c67a0922e735d8f Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Wed, 1 May 2013 15:41:33 +0200 Subject: wayland: use GetTimerMS for hiding mouse cursor This commit remove a lot of linux specific code, like epoll. It also reduces the complexity of the code. Instead of epoll we use poll which makes the wayland backend more portable to other platforms. --- video/out/wayland_common.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'video/out/wayland_common.h') diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 20d3853fcf..30706686fe 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -35,15 +35,6 @@ enum vo_wayland_window_type { }; struct vo; -struct vo_wayland_state; - -struct vo_wayland_task { - void (*run)(struct vo_wayland_task *task, - uint32_t events, - struct vo_wayland_state *wl); - - struct wl_list link; -}; struct vo_wayland_output { uint32_t id; /* unique name */ @@ -68,14 +59,13 @@ struct vo_wayland_display { struct wl_surface *surface; /* save timer and pointer for fading out */ + int mouse_timer; + bool mouse_waiting_hide; struct wl_pointer *pointer; uint32_t serial; - int timer_fd; - struct vo_wayland_task task; } cursor; - int display_fd, epoll_fd; - struct vo_wayland_task display_task; + int display_fd; struct wl_list output_list; struct wl_output *fs_output; /* fullscreen output */ -- cgit v1.2.3