mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
Address @emersion's comments
This commit is contained in:
parent
f5ea393bca
commit
a803a007fb
5 changed files with 53 additions and 48 deletions
|
|
@ -15,7 +15,7 @@
|
|||
/**
|
||||
* This protocol specifies a set of interfaces used for making clients able to
|
||||
* receive relative pointer events not obstructed by barriers (such as the
|
||||
* monitor edge or other pointer barriers).
|
||||
* monitor edge or pointer constraints).
|
||||
*/
|
||||
|
||||
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
struct wlr_relative_pointer_manager_v1 {
|
||||
struct wl_global *global;
|
||||
struct wl_list resources;
|
||||
struct wl_list resources; // wl_resource_get_link()
|
||||
struct wl_list relative_pointers;
|
||||
|
||||
struct {
|
||||
|
|
@ -60,6 +60,8 @@ struct wlr_relative_pointer_v1 {
|
|||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
struct wl_listener seat_destroy;
|
||||
|
||||
void *data;
|
||||
};
|
||||
|
||||
|
|
@ -69,7 +71,7 @@ void wlr_relative_pointer_manager_v1_destroy(
|
|||
struct wlr_relative_pointer_manager_v1 *relative_pointer_manager);
|
||||
|
||||
void wlr_relative_pointer_v1_send_relative_motion(
|
||||
struct wlr_relative_pointer_v1 *relative_pointer, uint64_t time,
|
||||
struct wlr_relative_pointer_v1 *relative_pointer, uint64_t time_msec,
|
||||
double dx, double dy, double dx_unaccel, double dy_unaccel);
|
||||
|
||||
struct wlr_relative_pointer_v1 *wlr_relative_pointer_v1_from_resource(
|
||||
|
|
|
|||
|
|
@ -313,19 +313,6 @@ void wlr_seat_pointer_clear_focus(struct wlr_seat *wlr_seat);
|
|||
void wlr_seat_pointer_send_motion(struct wlr_seat *wlr_seat, uint32_t time,
|
||||
double sx, double sy);
|
||||
|
||||
/**
|
||||
* Send relative motion events to the surface with pointer focus. Coordinates
|
||||
* for the motion event are relative to current pointer location, both
|
||||
* accelerated and unaccelerated. Compositors should use
|
||||
* `wlr_seat_pointer_notify_relative_motion()` to send relative motion events
|
||||
* to respect relative pointer requests by clients.
|
||||
*
|
||||
* Note that the timestamp is 64 bit, split into high 32 bits and low 32 bits.
|
||||
*/
|
||||
void wlr_seat_pointer_notify_relative_motion(struct wlr_seat *wlr_seat,
|
||||
uint64_t time, double dx, double dy,
|
||||
double dx_unaccel, double dy_unaccel);
|
||||
|
||||
/**
|
||||
* Send a button event to the surface with pointer focus. Coordinates for the
|
||||
* button event are surface-local. Returns the serial. Compositors should use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue