i3/i3bar/src/main.c

30 lines
460 B
C
Raw Normal View History

2010-07-21 19:15:18 -04:00
#include "ipc.h"
#include "outputs.h"
#include "workspaces.h"
#include "common.h"
#include "xcb.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <ev.h>
int main(int argc, char **argv) {
main_loop = ev_default_loop(0);
init_xcb();
refresh_outputs(&create_windows, NULL);
refresh_workspaces(NULL, NULL);
ev_loop(main_loop, 0);
ev_default_destroy();
clean_xcb();
free_outputs();
free_workspaces();
//sleep(5);
return 0;
}