diff options
author | MC <mc@hack.org> | 2010-06-22 07:47:14 +0200 |
---|---|---|
committer | MC <mc@hack.org> | 2010-06-22 07:47:14 +0200 |
commit | c13eaf724a60491eb020e22d18a4f2e089ae057c (patch) | |
tree | cf70ad5178ce58d94e86a6555cad96673ad76de8 /mcwm.c | |
parent | 5e6a30df976d028a8bbd313c457bc98d937ce499 (diff) | |
download | mcwm-c13eaf724a60491eb020e22d18a4f2e089ae057c.zip |
Include stdint explictly.
Handle default case in keypress switch.
Diffstat (limited to 'mcwm.c')
-rw-r--r-- | mcwm.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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() */ |