simple-touch: Exit on xdg_toplevel::close
Compare changes
- Link Mauve authored
This makes it possible to close this client without using a terminal, especially useful on a phone. Signed-off-by:
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
+ 9
− 5
@@ -34,7 +34,6 @@
@@ -64,9 +63,10 @@ struct touch {
@@ -137,7 +137,7 @@ shm_format(void *data, struct wl_shm *wl_shm, uint32_t format)
@@ -350,6 +350,8 @@ handle_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
@@ -370,7 +372,7 @@ touch_create(int width, int height)
@@ -405,6 +407,8 @@ touch_create(int width, int height)
@@ -439,7 +443,7 @@ main(int argc, char **argv)