mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
put dnd icon in the right place
This commit is contained in:
parent
a337e95505
commit
ac4841ba37
5 changed files with 37 additions and 2 deletions
|
|
@ -26,6 +26,9 @@ struct roots_seat {
|
|||
struct wl_list link;
|
||||
struct wl_list drag_icons;
|
||||
|
||||
// coordinates of the touch grab if one exists
|
||||
double touch_grab_x, touch_grab_y;
|
||||
|
||||
struct roots_view *focus;
|
||||
|
||||
struct wl_list keyboards;
|
||||
|
|
|
|||
|
|
@ -321,6 +321,11 @@ uint32_t wlr_seat_pointer_notify_button(struct wlr_seat *wlr_seat,
|
|||
void wlr_seat_pointer_notify_axis(struct wlr_seat *wlr_seat, uint32_t time,
|
||||
enum wlr_axis_orientation orientation, double value);
|
||||
|
||||
/**
|
||||
* Whether or not the pointer has a grab other than the default grab.
|
||||
*/
|
||||
bool wlr_seat_pointer_has_grab(struct wlr_seat *seat);
|
||||
|
||||
/**
|
||||
* Set this keyboard as the active keyboard for the seat.
|
||||
*/
|
||||
|
|
@ -388,6 +393,11 @@ void wlr_seat_keyboard_enter(struct wlr_seat *wlr_seat,
|
|||
*/
|
||||
void wlr_seat_keyboard_clear_focus(struct wlr_seat *wlr_seat);
|
||||
|
||||
/**
|
||||
* Whether or not the keyboard has a grab other than the default grab
|
||||
*/
|
||||
bool wlr_seat_keyboard_has_grab(struct wlr_seat *seat);
|
||||
|
||||
/**
|
||||
* Start a grab of the touch device of this seat. The grabber is responsible for
|
||||
* handling all touch events until the grab ends.
|
||||
|
|
@ -477,4 +487,9 @@ void wlr_seat_touch_send_up(struct wlr_seat *seat, uint32_t time,
|
|||
void wlr_seat_touch_send_motion(struct wlr_seat *seat, uint32_t time,
|
||||
int32_t touch_id, double sx, double sy);
|
||||
|
||||
/**
|
||||
* Whether or not the seat has a touch grab other than the default grab.
|
||||
*/
|
||||
bool wlr_seat_touch_has_grab(struct wlr_seat *seat);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue