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>
This commit is contained in:
Chris Michael 2017-01-30 12:24:27 -05:00
parent 4adc1ec8e7
commit 7c65f5ad20
1 changed files with 0 additions and 8 deletions

View File

@ -3815,10 +3815,6 @@ _elm_win_frame_cb_resize_show(void *data,
const resize_info *ri = _resize_info_get(sd->rot, mode);
if (ri) _elm_theme_object_set(sd->obj, sd->pointer.obj, "pointer", "base", ri->cursor);
}
if ((sd->wl.win) && (sd->pointer.surf) && (sd->pointer.visible))
ecore_wl2_window_pointer_set(sd->wl.win, sd->pointer.surf,
sd->pointer.hot_x, sd->pointer.hot_y);
#else
(void)source;
#endif
@ -3839,10 +3835,6 @@ _elm_win_frame_cb_resize_hide(void *data,
if (sd->pointer.obj)
_elm_theme_object_set(sd->obj, sd->pointer.obj,
"pointer", "base", "default");
if ((sd->wl.win) && (sd->pointer.surf) && (sd->pointer.visible))
ecore_wl2_window_pointer_set(sd->wl.win, sd->pointer.surf,
sd->pointer.hot_x, sd->pointer.hot_y);
#endif
}