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:
fdec236
)
Quit compositor on eject key press.
author
Kristian Høgsberg
<krh@redhat.com>
Tue, 2 Jan 2001 03:24:24 +0000
(22:24 -0500)
committer
Kristian Høgsberg
<krh@redhat.com>
Tue, 2 Jan 2001 03:24:24 +0000
(22:24 -0500)
wayland-system-compositor.c
patch
|
blob
|
history
diff --git
a/wayland-system-compositor.c
b/wayland-system-compositor.c
index
d868910
..
29d167f
100644
(file)
--- a/
wayland-system-compositor.c
+++ b/
wayland-system-compositor.c
@@
-738,12
+738,17
@@
notify_button(struct wlsc_input_device *device,
}
}
+static void on_term_signal(int signal_number, void *data);
+
void
notify_key(struct wlsc_input_device *device,
uint32_t key, uint32_t state)
{
struct wlsc_compositor *ec = device->ec;
+ if (key == KEY_EJECTCD)
+ on_term_signal(SIGTERM, ec);
+
if (!ec->vt_active)
return;