From 5d6406feb1b424da620a4720cceef890e93275a0 Mon Sep 17 00:00:00 2001 From: ppokorny Date: Fri, 25 May 2001 15:22:34 +0000 Subject: [PATCH] When changing from a widget-based storage (that was, in retrospect a horrible hack) to a screen data item, I neglected to fix the code that doles out key events to screens and clients. This meant screens didn't get keys. It's now fixed. --- server/input.c | 3 +-- server/widget.h | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/server/input.c b/server/input.c index 06b7d51..1781303 100644 --- a/server/input.c +++ b/server/input.c @@ -69,8 +69,7 @@ handle_input () // Give current screen a shot at the key first s = screenlist_current (); - w = widget_find( s, KEYS_WIDGETID ); - if( s->parent && w && w->text && strchr( w->text, key ) ) { + if( s->keys && strchr( s->keys, key ) ) { // This screen wants this key. Tell it we got one sprintf(str, "key %c\n", key); sock_send_string(s->parent->sock, str); diff --git a/server/widget.h b/server/widget.h index 7056f87..acb9aee 100644 --- a/server/widget.h +++ b/server/widget.h @@ -31,9 +31,6 @@ typedef struct widget { extern char *types[]; -// RESERVED widget ID for keys active on a screen -#define KEYS_WIDGETID "screenkeys" - widget *widget_create (); int widget_destroy (widget * w);