aboutsummaryrefslogtreecommitdiffstats
path: root/compositor.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-08-17 21:23:10 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-08-18 15:27:27 -0400
commiteef08fbb1a32d206c32608c95fe8a80db0fbc081 (patch)
treea8934f9190a2dbe8f908f595d36f5ce596ae7bf5 /compositor.h
parentAdd missing drm.c (diff)
downloadwayland-eef08fbb1a32d206c32608c95fe8a80db0fbc081.tar
wayland-eef08fbb1a32d206c32608c95fe8a80db0fbc081.tar.gz
wayland-eef08fbb1a32d206c32608c95fe8a80db0fbc081.tar.bz2
wayland-eef08fbb1a32d206c32608c95fe8a80db0fbc081.tar.lz
wayland-eef08fbb1a32d206c32608c95fe8a80db0fbc081.tar.xz
wayland-eef08fbb1a32d206c32608c95fe8a80db0fbc081.tar.zst
wayland-eef08fbb1a32d206c32608c95fe8a80db0fbc081.zip
First step towards drag and drop protocol
Diffstat (limited to 'compositor.h')
-rw-r--r--compositor.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/compositor.h b/compositor.h
index 315cb36..44fc1a8 100644
--- a/compositor.h
+++ b/compositor.h
@@ -69,7 +69,8 @@ enum wlsc_grab_type {
WLSC_DEVICE_GRAB_RESIZE_BOTTOM_RIGHT = 10,
WLSC_DEVICE_GRAB_RESIZE_MASK = 15,
WLSC_DEVICE_GRAB_MOVE = 16,
- WLSC_DEVICE_GRAB_MOTION = 17
+ WLSC_DEVICE_GRAB_MOTION = 17,
+ WLSC_DEVICE_GRAB_DRAG = 18
};
enum wlsc_pointer_type {
@@ -106,6 +107,7 @@ struct wlsc_input_device {
int32_t grab_width, grab_height;
int32_t grab_dx, grab_dy;
uint32_t grab_button;
+ struct wl_drag drag;
struct wlsc_listener listener;
};
@@ -118,6 +120,7 @@ struct wlsc_drm {
struct wlsc_buffer {
struct wl_buffer base;
+ int32_t width, height;
EGLImageKHR image;
struct wl_visual *visual;
};
@@ -131,7 +134,7 @@ struct wlsc_compositor {
EGLContext context;
GLuint fbo, vbo;
GLuint proj_uniform, tex_uniform;
- EGLImageKHR *pointer_images;
+ struct wlsc_buffer *pointer_buffers;
struct wl_display *wl_display;
/* We implement the shell interface. */