summaryrefslogtreecommitdiffstats
path: root/wayland.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-12-10 00:24:18 -0500
committerKristian Høgsberg <krh@redhat.com>2008-12-10 00:24:18 -0500
commiteac149ad067370e1234740b9ee41dd29c77d1cc0 (patch)
tree6ecb111a0d3df1cd28f8e258053ec3a92213c592 /wayland.h
parent98fed0fb8477b68e7200aaa4e5959adb57065c66 (diff)
downloadwayland-eac149ad067370e1234740b9ee41dd29c77d1cc0.tar.gz
wayland-eac149ad067370e1234740b9ee41dd29c77d1cc0.tar.xz
wayland-eac149ad067370e1234740b9ee41dd29c77d1cc0.zip
Pass button clicks through to compositor.
This lets us handle raising windows, which is useful.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index 021d5d9..c13e3be 100644
--- a/wayland.h
+++ b/wayland.h
@@ -142,6 +142,8 @@ wl_display_post_key_event(struct wl_display *display,
void
wl_display_post_frame(struct wl_display *display,
uint32_t frame, uint32_t msecs);
+void
+wl_display_raise_surface(struct wl_display *display, struct wl_surface *surface);
struct wl_compositor {
const struct wl_compositor_interface *interface;
@@ -174,6 +176,9 @@ struct wl_compositor_interface {
void (*notify_pointer_motion)(struct wl_compositor *compositor,
struct wl_object *source,
int32_t x, int32_t y);
+ void (*notify_pointer_button)(struct wl_compositor *compositor,
+ struct wl_object *source,
+ int32_t button, int32_t state);
void (*notify_key)(struct wl_compositor *compositor,
struct wl_object *source,
uint32_t key, uint32_t state);