commit 63b0d7d51cfcf782cb74d3c00b42195270960cf6
parent 50ac60a119ae1a9c3a297223cb2b1f2032bdfc8c
Author: Kyle Milz <kmilz@ucalgary.ca>
Date: Sun, 14 Oct 2012 16:42:41 -0600
remove unused function fake_key_event
Diffstat:
M | src/commands.c | | | 60 | ------------------------------------------------------------ |
1 file changed, 0 insertions(+), 60 deletions(-)
diff --git a/src/commands.c b/src/commands.c
@@ -843,66 +843,6 @@ zoom(const Arg *arg, void *data)
return EINA_TRUE;
}
-/*
-Eina_Bool
-fake_key_event(const Arg *a, void *data) {
- if(!embed) {
- return FALSE;
- }
- Arg err;
- err.i = Error;
- Display *xdpy;
- if ( (xdpy = XOpenDisplay(NULL)) == NULL ) {
- err.s = g_strdup("Couldn't find the XDisplay.");
- echo(&err);
- g_free(err.s);
- return FALSE;
- }
-
- XKeyEvent xk;
- xk.display = xdpy;
- xk.subwindow = None;
- xk.time = CurrentTime;
- xk.same_screen = True;
- xk.x = xk.y = xk.x_root = xk.y_root = 1;
- xk.window = embed;
- xk.state = a->i;
-
- if( ! a->s ) {
- err.s = g_strdup("Zero pointer as argument! Check your config.h");
- echo(&err);
- g_free(err.s);
- return FALSE;
- }
-
- KeySym keysym;
- if( (keysym = XStringToKeysym(a->s)) == NoSymbol ) {
- err.s = g_strdup_printf("Couldn't translate %s to keysym", a->s );
- echo(&err);
- g_free(err.s);
- return FALSE;
- }
-
- if( (xk.keycode = XKeysymToKeycode(xdpy, keysym)) == NoSymbol ) {
- err.s = g_strdup("Couldn't translate keysym to keycode");
- echo(&err);
- g_free(err.s);
- return FALSE;
- }
-
- xk.type = KeyPress;
- if( !XSendEvent(xdpy, embed, True, KeyPressMask, (XEvent *)&xk) ) {
- err.s = g_strdup("XSendEvent failed");
- echo(&err);
- g_free(err.s);
- return FALSE;
- }
- XFlush(xdpy);
-
- return TRUE;
-}
-*/
-
Eina_Bool
bookmark(const Arg *arg, void *data)
{