mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
wayland: emit relative pointer events only for current pointer
This commit is contained in:
parent
a9cbfd950e
commit
efe6414640
1 changed files with 3 additions and 0 deletions
|
@ -450,6 +450,9 @@ static void relative_pointer_handle_relative_motion(void *data,
|
||||||
wl_fixed_t dy_unaccel) {
|
wl_fixed_t dy_unaccel) {
|
||||||
struct wlr_wl_input_device *input_device = data;
|
struct wlr_wl_input_device *input_device = data;
|
||||||
struct wlr_input_device *wlr_dev = &input_device->wlr_input_device;
|
struct wlr_input_device *wlr_dev = &input_device->wlr_input_device;
|
||||||
|
if (pointer_get_wl(wlr_dev->pointer) != input_device->backend->current_pointer) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t time_usec = (uint64_t)utime_hi << 32 | utime_lo;
|
uint64_t time_usec = (uint64_t)utime_hi << 32 | utime_lo;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue