{
ECORE_WL2_WINDOW_TYPE_NONE,
ECORE_WL2_WINDOW_TYPE_TOPLEVEL,
- ECORE_WL2_WINDOW_TYPE_FULLSCREEN,
- ECORE_WL2_WINDOW_TYPE_MAXIMIZED,
- ECORE_WL2_WINDOW_TYPE_TRANSIENT,
ECORE_WL2_WINDOW_TYPE_MENU,
ECORE_WL2_WINDOW_TYPE_DND,
ECORE_WL2_WINDOW_TYPE_CUSTOM,
{
switch (win->type)
{
- case ECORE_WL2_WINDOW_TYPE_FULLSCREEN:
- if (win->xdg_surface)
- xdg_surface_set_fullscreen(win->xdg_surface, NULL);
- else if (win->wl_shell_surface)
- wl_shell_surface_set_fullscreen(win->wl_shell_surface,
- WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
- 0, NULL);
- break;
- case ECORE_WL2_WINDOW_TYPE_MAXIMIZED:
- if (win->xdg_surface)
- xdg_surface_set_maximized(win->xdg_surface);
- else if (win->wl_shell_surface)
- wl_shell_surface_set_maximized(win->wl_shell_surface, NULL);
- break;
- case ECORE_WL2_WINDOW_TYPE_TRANSIENT:
- if (win->xdg_surface)
- xdg_surface_set_parent(win->xdg_surface, win->parent->xdg_surface);
- else if (win->wl_shell_surface)
- wl_shell_surface_set_transient(win->wl_shell_surface,
- win->parent->surface,
- win->geometry.x, win->geometry.y, 0);
- break;
case ECORE_WL2_WINDOW_TYPE_MENU:
{
Ecore_Wl2_Input *input;
xdg_surface_set_maximized(window->xdg_surface);
else if (window->wl_shell_surface)
wl_shell_surface_set_maximized(window->wl_shell_surface, NULL);
-
- window->type = ECORE_WL2_WINDOW_TYPE_MAXIMIZED;
}
else
{
else if (window->wl_shell_surface)
wl_shell_surface_set_toplevel(window->wl_shell_surface);
- window->type = ECORE_WL2_WINDOW_TYPE_TOPLEVEL;
-
_ecore_wl2_window_configure_send(window, window->saved.w,
window->saved.h, 0);
}
wl_shell_surface_set_fullscreen(window->wl_shell_surface,
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
0, NULL);
-
- window->type = ECORE_WL2_WINDOW_TYPE_FULLSCREEN;
}
else
{
else if (window->wl_shell_surface)
wl_shell_surface_set_toplevel(window->wl_shell_surface);
- window->type = ECORE_WL2_WINDOW_TYPE_TOPLEVEL;
-
_ecore_wl2_window_configure_send(window, window->saved.w,
window->saved.h, 0);
}
&states, 0);
wl_array_release(&states);
}
-
- window->type = ECORE_WL2_WINDOW_TYPE_TOPLEVEL;
}
}