clients: Add delete handler for simple-shm / simple-egl
It seems this was forgotten in the port.
This commit is contained in:
committed by
Kristian Høgsberg
parent
5a183329ca
commit
a0d8a30931
@@ -310,6 +310,12 @@ handle_surface_focused_unset(void *data, struct xdg_surface *xdg_surface)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
handle_surface_delete(void *data, struct xdg_surface *xdg_surface)
|
||||||
|
{
|
||||||
|
running = 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct xdg_surface_listener xdg_surface_listener = {
|
static const struct xdg_surface_listener xdg_surface_listener = {
|
||||||
handle_surface_configure,
|
handle_surface_configure,
|
||||||
handle_surface_request_set_maximized,
|
handle_surface_request_set_maximized,
|
||||||
@@ -318,6 +324,7 @@ static const struct xdg_surface_listener xdg_surface_listener = {
|
|||||||
handle_surface_request_unset_fullscreen,
|
handle_surface_request_unset_fullscreen,
|
||||||
handle_surface_focused_set,
|
handle_surface_focused_set,
|
||||||
handle_surface_focused_unset,
|
handle_surface_focused_unset,
|
||||||
|
handle_surface_delete,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ struct window {
|
|||||||
struct wl_callback *callback;
|
struct wl_callback *callback;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static int running = 1;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
buffer_release(void *data, struct wl_buffer *buffer)
|
buffer_release(void *data, struct wl_buffer *buffer)
|
||||||
{
|
{
|
||||||
@@ -147,6 +149,12 @@ handle_focused_unset(void *data, struct xdg_surface *xdg_surface)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
handle_delete(void *data, struct xdg_surface *xdg_surface)
|
||||||
|
{
|
||||||
|
running = 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct xdg_surface_listener xdg_surface_listener = {
|
static const struct xdg_surface_listener xdg_surface_listener = {
|
||||||
handle_configure,
|
handle_configure,
|
||||||
handle_request_set_maximized,
|
handle_request_set_maximized,
|
||||||
@@ -155,6 +163,7 @@ static const struct xdg_surface_listener xdg_surface_listener = {
|
|||||||
handle_request_unset_fullscreen,
|
handle_request_unset_fullscreen,
|
||||||
handle_focused_set,
|
handle_focused_set,
|
||||||
handle_focused_unset,
|
handle_focused_unset,
|
||||||
|
handle_delete,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct window *
|
static struct window *
|
||||||
@@ -423,8 +432,6 @@ destroy_display(struct display *display)
|
|||||||
free(display);
|
free(display);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int running = 1;
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
signal_int(int signum)
|
signal_int(int signum)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user