summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mcwm.c b/mcwm.c
index e2e94a7..c93a8e6 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
+#include <stdint.h>
#include <unistd.h>
#include <errno.h>
#include <getopt.h>
@@ -32,6 +33,7 @@
#include <xcb/xcb_keysyms.h>
#include <xcb/xcb_atom.h>
#include <xcb/xcb_icccm.h>
+
#include <X11/keysym.h>
/* Check here for user configurable parts: */
@@ -964,6 +966,10 @@ void handle_keypress(xcb_drawable_t win, xcb_key_press_event_t *ev)
case KEY_L: /* l */
resizestep(focuswin, 'l');
break;
+
+ default:
+ /* Ignore other shifted keys. */
+ break;
}
}
else
@@ -1004,7 +1010,10 @@ void handle_keypress(xcb_drawable_t win, xcb_key_press_event_t *ev)
case KEY_X: /* x */
maximize(focuswin);
break;
-
+
+ default:
+ /* Ignore other keys. */
+ break;
} /* switch unshifted */
}
} /* handle_keypress() */