Rework the IPC-Code

This commit is contained in:
Axel Wagner
2010-07-23 04:43:43 +02:00
parent 02df973564
commit fb2afacce3
7 changed files with 158 additions and 298 deletions

View File

@ -1,21 +1,21 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <ev.h>
#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();
init_connection("/home/mero/.i3/ipc.sock");
refresh_outputs(&create_windows, NULL);
refresh_workspaces(NULL, NULL);
subscribe_events();
ev_loop(main_loop, 0);
@ -24,6 +24,5 @@ int main(int argc, char **argv) {
free_outputs();
free_workspaces();
//sleep(5);
return 0;
}