summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2011-06-06 16:52:08 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2011-06-06 16:52:08 -0400
commit579e321edc54452d991d0bfd9041b94858116f32 (patch)
tree2dc4a897e086173c05bc27293ccad6ae47e4b011 /src
parentc3acbfcb797e385d044fe60bcfc48e7299395cfa (diff)
Drop unused parameters from send_key function.
Diffstat (limited to 'src')
-rw-r--r--src/bclient.c2
-rw-r--r--src/dclient.c2
-rw-r--r--src/display.h2
-rw-r--r--src/input.c6
-rw-r--r--src/sclient.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/bclient.c b/src/bclient.c
index 6a8c8d2..121eb64 100644
--- a/src/bclient.c
+++ b/src/bclient.c
@@ -31,7 +31,7 @@
#include "input.h"
static int
-bclient_key(struct display *d, bool down, int keycode, int x, int y)
+bclient_key(struct display *d, bool down, int keycode)
{
if (d->client->input)
xenfb_send_key(d->client->input, down, keycode);
diff --git a/src/dclient.c b/src/dclient.c
index c4319a7..df3abf1 100644
--- a/src/dclient.c
+++ b/src/dclient.c
@@ -35,7 +35,7 @@ static int nkeys;
static unsigned char *background;
static int
-dclient_key(struct display *d, bool down, int keycode, int x, int y)
+dclient_key(struct display *d, bool down, int keycode)
{
/*
* Make the mouse_client the focus_client if:
diff --git a/src/display.h b/src/display.h
index f88fb5b..7bcd3b2 100644
--- a/src/display.h
+++ b/src/display.h
@@ -43,7 +43,7 @@
/* Typedefs for input functions */
struct display;
-typedef int (*key_func)(struct display *, bool, int, int, int);
+typedef int (*key_func)(struct display *, bool down, int keycode);
typedef int (*mouse_func)(struct display *, struct mouse_event *m);
struct display {
diff --git a/src/input.c b/src/input.c
index bb5e83e..df58bf6 100644
--- a/src/input.c
+++ b/src/input.c
@@ -96,8 +96,8 @@ key_event(struct input_event *e)
/* Check if SAK combination has been entered */
if (!secure && is_sak_press(e) && ctrl_down && alt_down) {
/* SAK entered */
- active_display->send_key(active_display, 0, KEY_LEFTCTRL, absx, absy);
- active_display->send_key(active_display, 0, KEY_LEFTALT, absx, absy);
+ active_display->send_key(active_display, 0, KEY_LEFTCTRL);
+ active_display->send_key(active_display, 0, KEY_LEFTALT);
display_secure_enter(e->code);
secure = 1;
}
@@ -114,7 +114,7 @@ key_event(struct input_event *e)
/* Otherwise, send event to the active display */
else
- active_display->send_key(active_display, e->value, e->code, absx, absy);
+ active_display->send_key(active_display, e->value, e->code);
}
static void
diff --git a/src/sclient.c b/src/sclient.c
index 8e44dec..2500247 100644
--- a/src/sclient.c
+++ b/src/sclient.c
@@ -33,7 +33,7 @@ static struct display sd;
static unsigned char *background;
static int
-sclient_key(struct display *d, bool down, int keycode, int x, int y)
+sclient_key(struct display *d, bool down, int keycode)
{
if (keycode == KEY_ESC)
kill(getpid(), SIGINT);