swk

static widget kit
git clone git://git.suckless.org/swk
Log | Files | Refs | README | LICENSE

commit b98a824f72bd35f9aee164acb3f0984b0225e047
parent ee4902b7ef8a6f19ac019ab8013b85d1dcc410b1
Author: Robert Ransom <rransom.8774@gmail.com>
Date:   Sat,  8 May 2010 15:03:17 -0700

Fix "event: key ..." bread crumbs.
Diffstat:
gi_sdl.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gi_sdl.c b/gi_sdl.c @@ -187,8 +187,6 @@ swk_gi_event(SwkWindow *w, int dowait) { ret->data.key.modmask |= Alt; if(event.key.keysym.mod & KMOD_META) ret->data.key.modmask |= Meta; - fprintf(stderr, "event: key %d %d\n", - ret->data.key.modmask, ret->data.key.keycode); if(ret->data.key.keycode != 0 && event.key.keysym.unicode != 0) { ret->data.key.keycode = event.key.keysym.unicode; } else { @@ -207,6 +205,8 @@ swk_gi_event(SwkWindow *w, int dowait) { break; } } + fprintf(stderr, "event: key %d %d\n", + ret->data.key.modmask, ret->data.key.keycode); break; case SDL_QUIT: ret->type = EQuit;