diff options
author | 2023-05-22 00:22:42 +0200 | |
---|---|---|
committer | 2023-05-22 00:22:42 +0200 | |
commit | 03911f18bdb58c5aa1cc7c992574d68b61dc1d1c (patch) | |
tree | a10499d12a3ee9073aeafd7e06bbed7d1bc1cf18 | |
parent | ee1e9921aeb88c01ee58fbcfa5d4cdaa6b2248a9 (diff) | |
download | cherry-03911f18bdb58c5aa1cc7c992574d68b61dc1d1c.tar.gz cherry-03911f18bdb58c5aa1cc7c992574d68b61dc1d1c.zip |
Change function signature
-rw-r--r-- | src/application.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/application.c b/src/application.c index de2726b..3c23898 100644 --- a/src/application.c +++ b/src/application.c @@ -37,13 +37,15 @@ cherry_application_new(const char *name) } static void -dispatch_event(CherryApplication *app, Window wnd, int event_id) { +dispatch_event(CherryApplication *app, + CherryEvent evt, + XEvent event) { iterator_t it = clist_iterator(&app->windows); while (clist_iterator_has_next(it)) { CherryWindow *w = clist_iterator_next(&it); if (w->window_handler == wnd) { if (w->listener != NULL) { - w->listener(w, event_id); + w->listener(w, evt); } else { return; } |