diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 9e8b5e1d2393ca4ab70b09d641798ef895eed791
parent f9990658aad6f59689303aafc45818eacaa3d46a
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Tue, 21 Jun 2022 13:54:56 +0200

add comment keypad/mouse

Diffstat:
Msrc/diary.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/diary.c b/src/diary.c @@ -583,6 +583,8 @@ int main(int argc, char** argv) { WINDOW* aside = newpad((CONFIG.range * 2 + 1) * 12 * MAX_MONTH_HEIGHT, ASIDE_WIDTH); WINDOW* cal = newpad((CONFIG.range * 2 + 1) * 12 * MAX_MONTH_HEIGHT, CAL_WIDTH); + // Mouse events under xterm will not be detected correctly + // in a window with its keypad bit off keypad(cal, TRUE); draw_calendar(cal, aside, CONFIG.dir, strlen(CONFIG.dir)); @@ -605,7 +607,6 @@ int main(int argc, char** argv) { WINDOW* prev = newwin(prev_height, prev_width, 1, ASIDE_WIDTH + CAL_WIDTH); display_entry(CONFIG.dir, diary_dir_size, &today, prev, prev_width); - mmask_t oldmask; MEVENT event;