Get outputs on start. Create dock window for every output.

This commit is contained in:
Axel Wagner
2010-07-23 05:04:13 +02:00
parent a3a7a2ca52
commit 72b55fdd4f
4 changed files with 19 additions and 42 deletions

View File

@ -9,6 +9,7 @@
#include "common.h"
#include "outputs.h"
#include "workspaces.h"
#include "xcb.h"
#include "ipc.h"
ev_io* i3_connection;
@ -42,12 +43,16 @@ void got_workspace_reply(char *reply) {
}
void got_subscribe_reply(char *reply) {
printf("Got Subscribe Reply: %s\n", reply);
printf("Got Subscribe Reply: %s\n", reply);
}
void got_output_reply(char *reply) {
printf("Got Outputs-Data!\nDestroying Windows...\n");
destroy_windows();
printf("Parsing JSON...\n");
parse_outputs_json(reply);
printf("Got Outputs-Data!\n");
printf("Creating_Windows,,,\n");
create_windows();
}
handler_t reply_handlers[] = {