mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Pass button clicks through to compositor.
This lets us handle raising windows, which is useful.
This commit is contained in:
parent
98fed0fb84
commit
eac149ad06
3 changed files with 50 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue