projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3361639
)
gears: Exit on ESC
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 30 Jul 2012 19:40:57 +0000
(15:40 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 30 Jul 2012 19:40:57 +0000
(15:40 -0400)
clients/simple-egl.c
patch
|
blob
|
history
diff --git
a/clients/simple-egl.c
b/clients/simple-egl.c
index
0e703df
..
51f810f
100644
(file)
--- a/
clients/simple-egl.c
+++ b/
clients/simple-egl.c
@@
-97,6
+97,8
@@
static const char *frag_shader_text =
" gl_FragColor = v_color;\n"
"}\n";
+static int running = 1;
+
static void
init_egl(struct display *display, EGLint alpha_size)
{
@@
-477,6
+479,8
@@
keyboard_handle_key(void *data, struct wl_keyboard *keyboard,
if (key == KEY_F11 && state)
toggle_fullscreen(d->window, d->window->fullscreen ^ 1);
+ else if (key == KEY_ESC && state)
+ running = 0;
}
static void
@@
-549,8
+553,6
@@
event_mask_update(uint32_t mask, void *data)
return 0;
}
-static int running = 1;
-
static void
signal_int(int signum)
{