diff options
author | rafa_99 <raroma09@gmail.com> | 2022-03-26 02:38:45 +0000 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2022-03-26 02:38:45 +0000 |
commit | 7dceceb175af597fb97893e4a60ef542048a48f1 (patch) | |
tree | 01670ee7eb54bf2d50435fb6f3591498689e6676 /xmouseless.c | |
parent | 09c441d397d5bf07dd819d7ade91c0428356a1f6 (diff) |
Suckless style stuff
Diffstat (limited to 'xmouseless.c')
-rw-r--r-- | xmouseless.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmouseless.c b/xmouseless.c index 75d2aea..12a789e 100644 --- a/xmouseless.c +++ b/xmouseless.c @@ -1,6 +1,6 @@ /* * xmouseless -*/ + */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -197,7 +197,6 @@ void handle_key(KeyCode keycode, Bool is_press) { for (i = 0; i < LENGTH(click_bindings); i++) { if (click_bindings[i].keysym == keysym) { click(click_bindings[i].button, is_press); - printf("click: %i %i\n", click_bindings[i].button, is_press); } } @@ -205,7 +204,6 @@ void handle_key(KeyCode keycode, Bool is_press) { for (i = 0; i < LENGTH(speed_bindings); i++) { if (speed_bindings[i].keysym == keysym) { speed = is_press ? speed_bindings[i].speed : default_speed; - printf("speed: %i\n", speed); } } @@ -231,7 +229,6 @@ void handle_key(KeyCode keycode, Bool is_press) { /* shell bindings */ for (i = 0; i < LENGTH(shell_bindings); i++) { if (shell_bindings[i].keysym == keysym) { - printf("executing: %s\n", shell_bindings[i].command); if (fork() == 0) { system(shell_bindings[i].command); exit(EXIT_SUCCESS); @@ -239,7 +236,7 @@ void handle_key(KeyCode keycode, Bool is_press) { } } - /* exit */ + /* exit */ for (i = 0; i < LENGTH(exit_keys); i++) { if (exit_keys[i] == keysym) { close_x(EXIT_SUCCESS); |