summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-22 07:47:14 +0200
committerMC <mc@hack.org>2010-06-22 07:47:14 +0200
commitc13eaf724a60491eb020e22d18a4f2e089ae057c (patch)
treecf70ad5178ce58d94e86a6555cad96673ad76de8
parent5e6a30df976d028a8bbd313c457bc98d937ce499 (diff)
downloadmcwm-c13eaf724a60491eb020e22d18a4f2e089ae057c.zip
Include stdint explictly.
Handle default case in keypress switch.
-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() */