diff options
| author | Drew DeVault <sir@cmpwn.com> | 2018-03-28 23:04:20 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2018-03-29 22:11:08 -0400 |
| commit | cab1352801b62d1b8a12ca1c995cb24445ce4bc9 (patch) | |
| tree | bc67373916c06d48700c4f69b8c2470a2f86887f /swaybar/event_loop.c | |
| parent | 382e8af418a7e1b8cf93d3398509b93c6874cb0d (diff) | |
Start port of swaybar to layer shell
This starts up the event loop and wayland display and shims out the
basic top level rendering concepts. Also includes some changes to
incorporate pango into the 1.x codebase properly.
Diffstat (limited to 'swaybar/event_loop.c')
| -rw-r--r-- | swaybar/event_loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/swaybar/event_loop.c b/swaybar/event_loop.c index 0d1be1da..748372ed 100644 --- a/swaybar/event_loop.c +++ b/swaybar/event_loop.c @@ -4,19 +4,18 @@ #include <string.h> #include <strings.h> #include <poll.h> -#include "swaybar/bar.h" +#include <time.h> #include "swaybar/event_loop.h" #include "list.h" -#include "log.h" struct event_item { - void(*cb)(int fd, short mask, void *data); + void (*cb)(int fd, short mask, void *data); void *data; }; struct timer_item { timer_t timer; - void(*cb)(timer_t timer, void *data); + void (*cb)(timer_t timer, void *data); void *data; }; @@ -138,7 +137,8 @@ void event_loop_poll() { void init_event_loop() { event_loop.fds.length = 0; event_loop.fds.capacity = 10; - event_loop.fds.items = malloc(event_loop.fds.capacity * sizeof(struct pollfd)); + event_loop.fds.items = malloc( + event_loop.fds.capacity * sizeof(struct pollfd)); event_loop.items = create_list(); event_loop.timers = create_list(); } |
