cairo_surface_t *cairo_surface;
int resizing;
+ int fullscreen_method;
window_key_handler_t key_handler;
window_keyboard_focus_handler_t keyboard_focus_handler;
window->type = TYPE_FULLSCREEN;
window->saved_allocation = window->allocation;
wl_shell_surface_set_fullscreen(window->shell_surface,
- WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
+ window->fullscreen_method,
0, NULL);
} else {
window->type = TYPE_TOPLEVEL;
}
}
+void
+window_set_fullscreen_method(struct window *window,
+ enum wl_shell_surface_fullscreen_method method)
+{
+ window->fullscreen_method = method;
+}
+
int
window_is_maximized(struct window *window)
{
window->type = type;
window->input_region = NULL;
window->opaque_region = NULL;
+ window->fullscreen_method = WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT;
if (display->dpy)
#ifdef HAVE_CAIRO_EGL
void
window_set_fullscreen(struct window *window, int fullscreen);
+void
+window_set_fullscreen_method(struct window *window,
+ enum wl_shell_surface_fullscreen_method method);
int
window_is_maximized(struct window *window);