aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-22 00:20:55 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-22 00:20:55 +0200
commitee1e9921aeb88c01ee58fbcfa5d4cdaa6b2248a9 (patch)
treec930890d9e60777b495deac7b236e9418a2de941 /src
parent4612136849351e11eff84ad77d7d1f1b620a49a3 (diff)
downloadcherry-ee1e9921aeb88c01ee58fbcfa5d4cdaa6b2248a9.tar.gz
cherry-ee1e9921aeb88c01ee58fbcfa5d4cdaa6b2248a9.zip
Add logs
Diffstat (limited to 'src')
-rw-r--r--src/application.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/application.c b/src/application.c
index 8126c5b..de2726b 100644
--- a/src/application.c
+++ b/src/application.c
@@ -58,6 +58,8 @@ cherry_application_main_loop(CherryApplication *app)
int finish = 0;
char *atom_name;
+ Log *log = log_create("cherry_application_main_loop");
+
while (finish == 0) {
XNextEvent(app->display, &event);
@@ -84,6 +86,7 @@ cherry_application_main_loop(CherryApplication *app)
WINDOW_EXPOSED);
break;
case MappingNotify:
+ log_debug(log, "MappingNotify");
XRefreshKeyboardMapping(&event.xmapping);
break;
case ButtonPress:
@@ -95,6 +98,7 @@ cherry_application_main_loop(CherryApplication *app)
break;
case KeyPress:
evt = cherry_event_key_create(KEY_PRESSED, event.xkey);
+ log_debug(log, "KeyPress");
break;
}