summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actions.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/actions.c b/src/actions.c
index 45bfc12..a78f894 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -233,9 +233,9 @@ cmd_bind (void *data)
{
rp_action *key_action;
-/* char foo[1000]; */
-/* sprintf (foo, " %d %ld : '%s' ", key->state, key->sym, cmd); */
-/* message (foo); */
+ /* char foo[1000]; */
+ /* sprintf (foo, " %d %ld : '%s' ", key->state, key->sym, cmd); */
+ /* message (foo); */
if ((key_action = find_keybinding (key->sym, key->state)))
replace_keybinding (key_action, cmd);
@@ -280,9 +280,9 @@ cmd_generate (void *data)
PRINT_DEBUG ("serial==%ld\n", ev.xkey.serial);
PRINT_DEBUG ("send_event==%d\n", ev.xkey.send_event);
PRINT_DEBUG ("display=%p\n", ev.xkey.display);
-/* PRINT_DEBUG ("root==%x ???\n", ev.xkey.root); */
-/* PRINT_DEBUG ("window==%x ???\n", ev.xkey.window); */
-/* PRINT_DEBUG ("subwindow==%x ???\n", ev.xkey.subwindow); */
+ /* PRINT_DEBUG ("root==%x ???\n", ev.xkey.root); */
+ /* PRINT_DEBUG ("window==%x ???\n", ev.xkey.window); */
+ /* PRINT_DEBUG ("subwindow==%x ???\n", ev.xkey.subwindow); */
PRINT_DEBUG ("time==%ld\n", ev.xkey.time);
PRINT_DEBUG ("x==%d y==%d\n", ev.xkey.x, ev.xkey.y);
PRINT_DEBUG ("x_root==%d y_root==%d\n", ev.xkey.x_root, ev.xkey.y_root);
@@ -295,24 +295,24 @@ cmd_generate (void *data)
breaks in some cases. */
ev1.xkey.type = KeyPress;
-/* ev1.xkey.serial = */
-/* ev1.xkey.send_event = */
+ /* ev1.xkey.serial = */
+ /* ev1.xkey.send_event = */
ev1.xkey.display = dpy;
-/* ev1.xkey.root = */
+ /* ev1.xkey.root = */
ev1.xkey.window = rp_current_window->w;
-/* ev1.xkey.subwindow = */
-/* ev1.xkey.time = ev.xkey.time; */
-/* ev1.xkey.x == */
-/* ev1.xkey.y == */
-/* ev1.xkey.x_root == */
-/* ev1.xkey.y_root == */
+ /* ev1.xkey.subwindow = */
+ /* ev1.xkey.time = ev.xkey.time; */
+ /* ev1.xkey.x == */
+ /* ev1.xkey.y == */
+ /* ev1.xkey.x_root == */
+ /* ev1.xkey.y_root == */
ev1.xkey.state = prefix_key.state;
ev1.xkey.keycode = XKeysymToKeycode (dpy, prefix_key.sym);
XSendEvent (dpy, rp_current_window->w, False, KeyPressMask, &ev1);
-/* XTestFakeKeyEvent (dpy, XKeysymToKeycode (dpy, 't'), True, 0); */
+ /* XTestFakeKeyEvent (dpy, XKeysymToKeycode (dpy, 't'), True, 0); */
XSync (dpy, False);
}
@@ -367,8 +367,7 @@ cmd_other (void *data)
}
static int
-string_to_window_number (str)
-char *str;
+string_to_window_number (char *str)
{
int i;
char *s;
@@ -379,6 +378,7 @@ char *str;
break;
i = i * 10 + (*s - '0');
}
+
return *s ? -1 : i;
}