From: Matthew Mondor Date: Wed, 27 Apr 2022 10:18:14 +0000 (+0000) Subject: Adjust brightness values X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=b07b1e4f0d57527d67f6956fcff32ad6da1edf9a;p=xscreensaver-5.35.git Adjust brightness values --- diff --git a/MATT/TODO.txt b/MATT/TODO.txt index a0676d1..c425b6a 100644 --- a/MATT/TODO.txt +++ b/MATT/TODO.txt @@ -73,6 +73,7 @@ TODO switching plugin gets Ctrl/Shift flagged in X11 XKeyEvent's state field, affecting various applications, but not all. Presumably applications that check up/down events to themselves handle Ctrl/Shift flags are not affected. + Using XGetModifierMapping() may also be a workaround. Fixed by replacing the plugin by two buttons directly invoking setxkbmap for now. Leaving this note in case someone else experiences a similar issue, to have a clue on how to fix it. @@ -343,6 +344,7 @@ Additional related notes removed from TODO: And according to xterm man page, if backarrowKeyIsErase resource is on (on by default), it queries stty in order to determine what to send. + The Execute key is actually the escape sequence sent for Delete ([~3). THREADS AND SMP diff --git a/hacks/analogterm.h b/hacks/analogterm.h index 96372bc..35d79ba 100644 --- a/hacks/analogterm.h +++ b/hacks/analogterm.h @@ -37,12 +37,10 @@ #define TMODE_FGCOLOR (1L << 10) #define TMODE_BGCOLOR (1L << 11) -#define TMODE_NORMAL_LEVEL (ANALOGTV_WHITE_LEVEL - 35) -#define TMODE_BOLD_LEVEL (ANALOGTV_WHITE_LEVEL + 20) +#define TMODE_NORMAL_LEVEL (ANALOGTV_WHITE_LEVEL - 45) +#define TMODE_BOLD_LEVEL (ANALOGTV_WHITE_LEVEL + 15) #define TMODE_DIM_LEVEL (ANALOGTV_WHITE_LEVEL - 60) -#define CHARSETS 2 - typedef struct analogterm_state { unsigned char hireslines[192][80]; diff --git a/utils/textclient.c b/utils/textclient.c index ded2d0b..186aba1 100644 --- a/utils/textclient.c +++ b/utils/textclient.c @@ -710,7 +710,7 @@ kdead_filter(KeySym keysym, unsigned char *c) Bool textclient_putc (text_data *d, XKeyEvent *k) { - KeySym keysym; + KeySym keysym = 0; unsigned char c = 0; const char *send = NULL; bool swapped = false;