diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-03-09 16:52:44 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-03-09 16:52:44 +0900 |
commit | f654714d75afdd07ad851bf278a39ddf8de6caba (patch) | |
tree | 07e4ee286e0af1d969a9b978467ab1e92bca7f11 | |
parent | 3147066865907479d928d1e7958731d347589d85 (diff) |
ecore_input - dont try update modifiers and locks on mouse events
mouse events have nothing to do with modifiers or locks, so dont try
modify them on mouse events. a total waste of cpu and time.
this should also fix T5251
-rw-r--r-- | src/lib/ecore_input_evas/ecore_input_evas.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/ecore_input_evas/ecore_input_evas.c b/src/lib/ecore_input_evas/ecore_input_evas.c index 7866bd5d9a..28d06e06e0 100644 --- a/src/lib/ecore_input_evas/ecore_input_evas.c +++ b/src/lib/ecore_input_evas/ecore_input_evas.c | |||
@@ -531,9 +531,6 @@ _ecore_event_evas_mouse_button(Ecore_Event_Mouse_Button *e, Ecore_Event_Press pr | |||
531 | 531 | ||
532 | if (e->multi.device == 0) | 532 | if (e->multi.device == 0) |
533 | { | 533 | { |
534 | ecore_event_evas_seat_modifier_lock_update(lookup->evas, | ||
535 | e->modifiers, | ||
536 | efl_input_device_seat_get(e->dev)); | ||
537 | if (press == ECORE_DOWN) | 534 | if (press == ECORE_DOWN) |
538 | { | 535 | { |
539 | if (!lookup->direct || | 536 | if (!lookup->direct || |
@@ -613,9 +610,6 @@ ecore_event_evas_mouse_move(void *data EINA_UNUSED, int type EINA_UNUSED, void * | |||
613 | if (e->multi.device == 0) | 610 | if (e->multi.device == 0) |
614 | { | 611 | { |
615 | _ecore_event_evas_push_mouse_move(e); | 612 | _ecore_event_evas_push_mouse_move(e); |
616 | ecore_event_evas_seat_modifier_lock_update(lookup->evas, | ||
617 | e->modifiers, | ||
618 | efl_input_device_seat_get(e->dev)); | ||
619 | if (!lookup->direct || | 613 | if (!lookup->direct || |
620 | !lookup->direct(lookup->window, ECORE_EVENT_MOUSE_MOVE, e)) | 614 | !lookup->direct(lookup->window, ECORE_EVENT_MOUSE_MOVE, e)) |
621 | { | 615 | { |
@@ -674,9 +668,6 @@ _ecore_event_evas_mouse_io(Ecore_Event_Mouse_IO *e, Ecore_Event_IO io) | |||
674 | 668 | ||
675 | lookup = _ecore_event_window_match(e->event_window); | 669 | lookup = _ecore_event_window_match(e->event_window); |
676 | if (!lookup) return ECORE_CALLBACK_PASS_ON; | 670 | if (!lookup) return ECORE_CALLBACK_PASS_ON; |
677 | ecore_event_evas_seat_modifier_lock_update(lookup->evas, | ||
678 | e->modifiers, | ||
679 | efl_input_device_seat_get(e->dev)); | ||
680 | switch (io) | 671 | switch (io) |
681 | { | 672 | { |
682 | case ECORE_IN: | 673 | case ECORE_IN: |
@@ -722,8 +713,6 @@ ecore_event_evas_mouse_wheel(void *data EINA_UNUSED, int type EINA_UNUSED, void | |||
722 | e = event; | 713 | e = event; |
723 | lookup = _ecore_event_window_match(e->event_window); | 714 | lookup = _ecore_event_window_match(e->event_window); |
724 | if (!lookup) return ECORE_CALLBACK_PASS_ON; | 715 | if (!lookup) return ECORE_CALLBACK_PASS_ON; |
725 | ecore_event_evas_seat_modifier_lock_update(lookup->evas, e->modifiers, | ||
726 | efl_input_device_seat_get(e->dev)); | ||
727 | if (!lookup->direct || | 716 | if (!lookup->direct || |
728 | !lookup->direct(lookup->window, ECORE_EVENT_MOUSE_WHEEL, e)) | 717 | !lookup->direct(lookup->window, ECORE_EVENT_MOUSE_WHEEL, e)) |
729 | { | 718 | { |