diary

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

commit 8a20e1fdf2a4162df9576e56a19206094efa42c3
parent 01bf8f22409c67cc59ab69ddf715b50520bc1d55
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun, 28 Nov 2021 10:35:35 +0100

fix(mousemask): remember default mask

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

diff --git a/src/diary.c b/src/diary.c @@ -604,7 +604,8 @@ 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); - mousemask(ALL_MOUSE_EVENTS, NULL); + mmask_t oldmask; + mousemask(ALL_MOUSE_EVENTS, &oldmask); MEVENT event; bool click_in_calwin = false; @@ -790,7 +791,9 @@ int main(int argc, char** argv) { break; } curs_set(1); + mousemask(oldmask, NULL); system(ecmd); + mousemask(ALL_MOUSE_EVENTS, &oldmask); curs_set(0); keypad(cal, TRUE);