Index: uspace/app/gfxdemo/gfxdemo.c
===================================================================
--- uspace/app/gfxdemo/gfxdemo.c	(revision a8eed5fbd3a0a8c9b9d42cf67e4146914e1b1be4)
+++ uspace/app/gfxdemo/gfxdemo.c	(revision 1a1271dfaa2121286470b22326ac39b1f42e1354)
@@ -50,7 +50,9 @@
 #include <window.h>
 
+static void wnd_close_event(void *);
 static void wnd_kbd_event(void *, kbd_event_t *);
 
 static display_wnd_cb_t wnd_cb = {
+	.close_event = wnd_close_event,
 	.kbd_event = wnd_kbd_event
 };
@@ -500,4 +502,10 @@
 }
 
+static void wnd_close_event(void *arg)
+{
+	printf("Close event\n");
+	quit = true;
+}
+
 static void wnd_kbd_event(void *arg, kbd_event_t *event)
 {
