From cf5d24033d2869aedf9d578af5b267143356dd22 Mon Sep 17 00:00:00 2001 From: spew Date: Wed, 26 Oct 2016 14:01:13 -0500 Subject: [PATCH] winwatch: no more 'l' key labeling --- sys/man/1/winwatch | 3 --- sys/src/cmd/winwatch.c | 41 ++--------------------------------------- 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/sys/man/1/winwatch b/sys/man/1/winwatch index a14d4ecb5..a2d57a07d 100644 --- a/sys/man/1/winwatch +++ b/sys/man/1/winwatch @@ -24,9 +24,6 @@ or DEL quits .IR winwatch . -Typing -.B l -and selecting a window by a click also prompts for a new label. .PP If the .B -e diff --git a/sys/src/cmd/winwatch.c b/sys/src/cmd/winwatch.c index 2b35a4542..b54e40f63 100644 --- a/sys/src/cmd/winwatch.c +++ b/sys/src/cmd/winwatch.c @@ -299,44 +299,9 @@ click(Mouse m) return label(win[i], m); case 4: return unhide(win[i]); + default: + return 0; } - return 1; -} - -Cursor crosscursor = { - {-7, -7}, - {0x03, 0xC0, 0x03, 0xC0, 0x03, 0xC0, 0x03, 0xC0, - 0x03, 0xC0, 0x03, 0xC0, 0xFF, 0xFF, 0xFF, 0xFF, - 0xFF, 0xFF, 0xFF, 0xFF, 0x03, 0xC0, 0x03, 0xC0, - 0x03, 0xC0, 0x03, 0xC0, 0x03, 0xC0, 0x03, 0xC0, }, - {0x00, 0x00, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, - 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x7F, 0xFE, - 0x7F, 0xFE, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, - 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x00, 0x00, } -}; - -void -kbdlabel(void) -{ - Mouse m; - int i; - - esetcursor(&crosscursor); - do - m = emouse(); - while((m.buttons & 7) == 0); - do - m = emouse(); - while((m.buttons & 7) == 1); - esetcursor(nil); - if((m.buttons & 7) != 0) - return; - for(i=0; i