diary

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

commit 1f7b3e1f3e1c366a5ceeb1e9f34b7a77df87a2e9
parent ab94dd32fbba6fe5eabe14dcfdb3f6377415cd11
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sun, 21 Nov 2021 10:31:52 +0100

debug mouse event button state

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

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