diary

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

commit 57591b390d7c7556e2e5c309ea86bda49b3e6bcd
parent 1f7b3e1f3e1c366a5ceeb1e9f34b7a77df87a2e9
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Mon, 22 Nov 2021 21:08:12 +0100

detecht touch and click events

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

diff --git a/src/diary.c b/src/diary.c @@ -692,7 +692,7 @@ int main(int argc, char** argv) { if(getmouse(&event) == OK) { // when left mouse button pressed fprintf(stderr, "Button event: %i\n", event.bstate); - if(event.bstate & BUTTON1_CLICKED) { + if(event.bstate & (BUTTON1_PRESSED|BUTTON1_CLICKED)) { int cy, cx; getyx(cal, cy, cx); int pad_cy = cy - pad_pos + 1;