mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
input: move notify-idle-manager to tablet/touch handlers
Move them away from the cursor emulate functions. This avoid calling them twice for touch motion. Also notify idle manager on touch down/up.
This commit is contained in:
parent
eed972cef1
commit
7e0cd8ee5a
3 changed files with 13 additions and 10 deletions
|
|
@ -1194,8 +1194,6 @@ void
|
|||
cursor_emulate_move_absolute(struct seat *seat, struct wlr_input_device *device,
|
||||
double x, double y, uint32_t time_msec)
|
||||
{
|
||||
idle_manager_notify_activity(seat->seat);
|
||||
|
||||
double lx, ly;
|
||||
wlr_cursor_absolute_to_layout_coords(seat->cursor,
|
||||
device, x, y, &lx, &ly);
|
||||
|
|
@ -1210,8 +1208,6 @@ void
|
|||
cursor_emulate_button(struct seat *seat, uint32_t button,
|
||||
enum wl_pointer_button_state state, uint32_t time_msec)
|
||||
{
|
||||
idle_manager_notify_activity(seat->seat);
|
||||
|
||||
bool notify;
|
||||
switch (state) {
|
||||
case WL_POINTER_BUTTON_STATE_PRESSED:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue