window: Always pass focused widget to widget motion handlers

Grabbed widgets should always receive motion events as if it was the
widget that would receive it if no grab was active. This means that the
focused widget should always be passed as the widget argument to widget
motion handlers.

This reverts commit 8c9c8fcf6e.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Jonas Ådahl 12 years ago committed by Kristian Høgsberg
parent f82eda5247
commit f461eee2b0
  1. 2
      clients/window.c

@ -2095,7 +2095,7 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer,
else
widget = input->focus_widget;
if (widget && widget->motion_handler)
cursor = widget->motion_handler(widget,
cursor = widget->motion_handler(input->focus_widget,
input, time, sx, sy,
widget->user_data);

Loading…
Cancel
Save