win->allocation.h = h;
win->saved_allocation = win->allocation;
win->transparent = EINA_FALSE;
- /* win->type = ECORE_WL_WINDOW_TYPE_TOPLEVEL; */
- win->type = ECORE_WL_WINDOW_TYPE_NONE;
+ win->type = ECORE_WL_WINDOW_TYPE_TOPLEVEL;
win->buffer_type = buffer_type;
win->id = _win_id++;
ecore_wl_window_surface_create(win);
- if (win->type != ECORE_WL_WINDOW_TYPE_DND)
+ if (win->type != ECORE_WL_WINDOW_TYPE_DND &&
+ win->type != ECORE_WL_WINDOW_TYPE_NONE)
{
if (!win->shell_surface)
{
win->parent->surface,
win->allocation.x, win->allocation.y, 0);
break;
- case ECORE_WL_WINDOW_TYPE_NONE:
- win->type = ECORE_WL_WINDOW_TYPE_TOPLEVEL;
- /* fallthrough */
case ECORE_WL_WINDOW_TYPE_TOPLEVEL:
wl_shell_surface_set_toplevel(win->shell_surface);
break;