diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2010-08-16 16:08:12 -0400 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-08-16 16:08:12 -0400 |
| commit | 1db21f1cf5240a12f91cebb1971fcd35a6e60903 (patch) | |
| tree | 9d30cefa49c20a8178ba80314dc3251758340f1e /compositor.h | |
| parent | Add protocol for setting the pointer image (diff) | |
| download | wayland-1db21f1cf5240a12f91cebb1971fcd35a6e60903.tar wayland-1db21f1cf5240a12f91cebb1971fcd35a6e60903.tar.gz wayland-1db21f1cf5240a12f91cebb1971fcd35a6e60903.tar.bz2 wayland-1db21f1cf5240a12f91cebb1971fcd35a6e60903.tar.lz wayland-1db21f1cf5240a12f91cebb1971fcd35a6e60903.tar.xz wayland-1db21f1cf5240a12f91cebb1971fcd35a6e60903.tar.zst wayland-1db21f1cf5240a12f91cebb1971fcd35a6e60903.zip | |
Use different cursor images in the compositor
Diffstat (limited to 'compositor.h')
| -rw-r--r-- | compositor.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/compositor.h b/compositor.h index ac812dc..989b541 100644 --- a/compositor.h +++ b/compositor.h @@ -76,6 +76,20 @@ enum wlsc_grab_type { WLSC_DEVICE_GRAB_MOTION = 17 }; +enum wlsc_pointer_type { + WLSC_POINTER_BOTTOM_LEFT, + WLSC_POINTER_BOTTOM_RIGHT, + WLSC_POINTER_BOTTOM, + WLSC_POINTER_DRAGGING, + WLSC_POINTER_LEFT_PTR, + WLSC_POINTER_LEFT, + WLSC_POINTER_RIGHT, + WLSC_POINTER_TOP_LEFT, + WLSC_POINTER_TOP_RIGHT, + WLSC_POINTER_TOP, + WLSC_POINTER_IBEAM, +}; + struct wlsc_input_device { struct wl_object base; int32_t x, y; @@ -90,10 +104,12 @@ struct wlsc_input_device { uint32_t modifier_state; enum wlsc_grab_type grab; + struct wlsc_surface *grab_surface; uint32_t grab_time; int32_t grab_x, grab_y; int32_t grab_width, grab_height; int32_t grab_dx, grab_dy; + uint32_t grab_button; struct wlsc_listener listener; }; @@ -119,7 +135,7 @@ struct wlsc_compositor { EGLContext context; GLuint fbo, vbo; GLuint proj_uniform, tex_uniform; - EGLImageKHR default_pointer_image; + EGLImageKHR *pointer_images; struct wl_display *wl_display; /* We implement the shell interface. */ |
