|
|
|
@ -3837,45 +3837,45 @@ handle_surface_configure(void *data, struct xdg_surface *xdg_surface, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
handle_surface_focused_set(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
handle_surface_request_set_maximized(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
{ |
|
|
|
|
struct window *window = data; |
|
|
|
|
window->focused = 1; |
|
|
|
|
window_set_maximized(window, 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
handle_surface_focused_unset(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
handle_surface_request_unset_maximized(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
{ |
|
|
|
|
struct window *window = data; |
|
|
|
|
window->focused = 0; |
|
|
|
|
window_set_maximized(window, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
handle_surface_request_set_maximized(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
handle_surface_request_set_fullscreen(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
{ |
|
|
|
|
struct window *window = data; |
|
|
|
|
window_set_maximized(window, 1); |
|
|
|
|
window_set_fullscreen(window, 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
handle_surface_request_unset_maximized(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
handle_surface_request_unset_fullscreen(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
{ |
|
|
|
|
struct window *window = data; |
|
|
|
|
window_set_maximized(window, 0); |
|
|
|
|
window_set_fullscreen(window, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
handle_surface_request_set_fullscreen(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
handle_surface_focused_set(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
{ |
|
|
|
|
struct window *window = data; |
|
|
|
|
window_set_fullscreen(window, 1); |
|
|
|
|
window->focused = 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|
handle_surface_request_unset_fullscreen(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
handle_surface_focused_unset(void *data, struct xdg_surface *xdg_surface) |
|
|
|
|
{ |
|
|
|
|
struct window *window = data; |
|
|
|
|
window_set_fullscreen(window, 0); |
|
|
|
|
window->focused = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void |
|
|
|
|