/*
- * Copyright (c) 2011, Andy Spencer <andy753421@gmail.com>
+ * Copyright (c) 2011-2012, Andy Spencer <andy753421@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
#include <stdio.h>
#include "util.h"
+#include "types.h"
#include "sys.h"
#include "wm.h"
return 0;
}
+int wm_handle_state(win_t *win, state_t prev, state_t next)
+{
+ return 0;
+}
+
void wm_insert(win_t *win)
{
tags[tag] = list_insert(tags[tag], win);
}
}
-void wm_init(win_t *root)
+void wm_init(void)
{
event_t keys[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
for (int i = 0; i < countof(keys); i++) {
- sys_watch(root, keys[i], MOD(.MODKEY=1));
- sys_watch(root, keys[i], MOD(.MODKEY=1,.shift=1));
+ sys_watch(NULL, keys[i], MOD(.MODKEY=1));
+ sys_watch(NULL, keys[i], MOD(.MODKEY=1,.shift=1));
}
}
-void wm_free(win_t *root)
+void wm_free(void)
{
for (int i = 0; i < 10; i++) {
while (tags[i]) {