forked from enlightenment/enlightenment
Remove button increments/decrements from interface callbacks as these
are done in the mouse up/down callbacks. NB: Thanks for the report Mike ;) Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
e4924a5986
commit
2dce6d935f
|
@ -2076,11 +2076,6 @@ _e_wl_shell_move_grab_cb_button(struct wl_pointer_grab *grab, unsigned int times
|
||||||
/* try to get the pointer */
|
/* try to get the pointer */
|
||||||
if (!(ptr = grab->pointer)) return;
|
if (!(ptr = grab->pointer)) return;
|
||||||
|
|
||||||
if (state == WL_POINTER_BUTTON_STATE_RELEASED)
|
|
||||||
ptr->button_count--;
|
|
||||||
else
|
|
||||||
ptr->button_count++;
|
|
||||||
|
|
||||||
if (ptr->button_count == 1)
|
if (ptr->button_count == 1)
|
||||||
ptr->grab_serial = wl_display_get_serial(_e_wl_comp->wl.display);
|
ptr->grab_serial = wl_display_get_serial(_e_wl_comp->wl.display);
|
||||||
|
|
||||||
|
@ -2160,11 +2155,6 @@ _e_wl_shell_resize_grab_cb_button(struct wl_pointer_grab *grab, unsigned int tim
|
||||||
/* try to get the pointer */
|
/* try to get the pointer */
|
||||||
if (!(ptr = grab->pointer)) return;
|
if (!(ptr = grab->pointer)) return;
|
||||||
|
|
||||||
if (state == WL_POINTER_BUTTON_STATE_RELEASED)
|
|
||||||
ptr->button_count--;
|
|
||||||
else
|
|
||||||
ptr->button_count++;
|
|
||||||
|
|
||||||
if (ptr->button_count == 1)
|
if (ptr->button_count == 1)
|
||||||
ptr->grab_serial = wl_display_get_serial(_e_wl_comp->wl.display);
|
ptr->grab_serial = wl_display_get_serial(_e_wl_comp->wl.display);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue