summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-01-18 17:21:27 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-19 12:40:40 -0600
commit520821e432476ff440b44e90fe9bfe21ec0847b9 (patch)
tree65b6da0e062cb213e195b8e3aa6b23ad68481fa6 /src/lib/ecore_wl2/ecore_wl2_input.c
parent79f3eaa68bb82af95415a08efe86cb8182f7d75d (diff)
wayland: Reduce number of unneccessary display flushes
b48781aa6c85c72f620c57cebff96580ddd67899 fixed multiple bugs where the display wasn't flushed correctly, however it was a little overzealous. Some of the flushes were added after calls that only updated internal state, some in internal functions in which the caller was already going to flush, and some were after wayland protocol calls that are double buffered anyway and won't do anything until a following commit. Also, I've removes at least one long standing flush where the recently added flush is in a better location than the original.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index aa87fde651..fd1e0f4a9b 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -1652,7 +1652,6 @@ _ecore_wl2_input_add(Ecore_Wl2_Display *display, unsigned int id, unsigned int v
1652 wl_data_device_manager_get_data_device(display->wl.data_device_manager, 1652 wl_data_device_manager_get_data_device(display->wl.data_device_manager,
1653 input->wl.seat); 1653 input->wl.seat);
1654 wl_data_device_add_listener(input->data.device, &_data_listener, input); 1654 wl_data_device_add_listener(input->data.device, &_data_listener, input);
1655 ecore_wl2_display_flush(input->display);
1656} 1655}
1657 1656
1658void 1657void