summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-30 12:24:27 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-30 12:24:27 -0500
commit7c65f5ad20f1be896225106e18e658d25d24ee28 (patch)
treea464efde0bc8ea6543339d306cae01e53b773018
parent4adc1ec8e7c64fcba42735a007e983209415cd23 (diff)
elementary: No need to reset pointer surface on resize
As the pointer canvas will already be visible at this point, there is no need to redo the wl_pointer_set_cursor call as we can just set the pointer image we desire on the surface (_elm_theme_object_set) and when the pointer canvas renders, it will have the proper cursor Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 5a094590db..f4a7076c25 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -3815,10 +3815,6 @@ _elm_win_frame_cb_resize_show(void *data,
3815 const resize_info *ri = _resize_info_get(sd->rot, mode); 3815 const resize_info *ri = _resize_info_get(sd->rot, mode);
3816 if (ri) _elm_theme_object_set(sd->obj, sd->pointer.obj, "pointer", "base", ri->cursor); 3816 if (ri) _elm_theme_object_set(sd->obj, sd->pointer.obj, "pointer", "base", ri->cursor);
3817 } 3817 }
3818
3819 if ((sd->wl.win) && (sd->pointer.surf) && (sd->pointer.visible))
3820 ecore_wl2_window_pointer_set(sd->wl.win, sd->pointer.surf,
3821 sd->pointer.hot_x, sd->pointer.hot_y);
3822#else 3818#else
3823 (void)source; 3819 (void)source;
3824#endif 3820#endif
@@ -3839,10 +3835,6 @@ _elm_win_frame_cb_resize_hide(void *data,
3839 if (sd->pointer.obj) 3835 if (sd->pointer.obj)
3840 _elm_theme_object_set(sd->obj, sd->pointer.obj, 3836 _elm_theme_object_set(sd->obj, sd->pointer.obj,
3841 "pointer", "base", "default"); 3837 "pointer", "base", "default");
3842
3843 if ((sd->wl.win) && (sd->pointer.surf) && (sd->pointer.visible))
3844 ecore_wl2_window_pointer_set(sd->wl.win, sd->pointer.surf,
3845 sd->pointer.hot_x, sd->pointer.hot_y);
3846#endif 3838#endif
3847} 3839}
3848 3840