check for non-wl compositor when forcing application cursors onto pointers

comp_type is not set during initial pointer creation on startup but will be set at
the point of xwl startup, so use a check which will succeed

fix T6157
ref 2b8c70fe98
This commit is contained in:
Mike Blumenkrantz 2017-10-09 07:09:16 -04:00
parent ce0e22b131
commit 1e1129e006
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ _e_pointer_cb_free(E_Pointer *ptr)
static void
_e_pointer_x11_setup(E_Pointer *ptr, const char *cursor)
{
if (ptr->e_cursor && (e_comp->comp_type == E_PIXMAP_TYPE_X))
if (ptr->e_cursor && (e_comp->comp_type != E_PIXMAP_TYPE_WL))
{
/* create a pointer canvas if we need to */
if ((!ptr->buffer_evas) && ptr->win) _e_pointer_canvas_add(ptr);