summary refs log tree commit diff
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga <oga>2009-05-18 00:14:19 +0000
committeroga <oga>2009-05-18 00:14:19 +0000
commit382662d00365eb762b60fdd1ef7ac2c06beee0ec (patch)
tree5a1c9dbccd89ce922cea79e8ef905d7be65fff15 /calmwm.c
parent9be77266063c3ef82aeb0dc305d7e82dc517dbff (diff)
downloadcwm-382662d00365eb762b60fdd1ef7ac2c06beee0ec.tar.gz
cwm-382662d00365eb762b60fdd1ef7ac2c06beee0ec.tar.xz
cwm-382662d00365eb762b60fdd1ef7ac2c06beee0ec.zip
Rip out the event layer and just use a static array of callbacks like
every other window manager since twm.

The event layer is very nice, very shiny, very flexible, and very much
underutilised. We don't need any of those shiny features so it's
probably better to earn ourselves 1k smaller text size instead.

ok todd@, okan@
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/calmwm.c b/calmwm.c
index 3c61a3e..0f1e176 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -80,24 +80,6 @@ main(int argc, char **argv)
 	x_setup();
 	Starting = 0;
 
-	xev_init();
-
-	XEV_QUICK(NULL, NULL, MapRequest, xev_handle_maprequest, NULL);
-	XEV_QUICK(NULL, NULL, UnmapNotify, xev_handle_unmapnotify, NULL);
-	XEV_QUICK(NULL, NULL, ConfigureRequest,
-	    xev_handle_configurerequest, NULL);
-	XEV_QUICK(NULL, NULL, PropertyNotify, xev_handle_propertynotify, NULL);
-	XEV_QUICK(NULL, NULL, EnterNotify, xev_handle_enternotify, NULL);
-	XEV_QUICK(NULL, NULL, LeaveNotify, xev_handle_leavenotify, NULL);
-	XEV_QUICK(NULL, NULL, ButtonPress, xev_handle_buttonpress, NULL);
-	XEV_QUICK(NULL, NULL, ButtonRelease, xev_handle_buttonrelease, NULL);
-	XEV_QUICK(NULL, NULL, KeyPress, xev_handle_keypress, NULL);
-	XEV_QUICK(NULL, NULL, KeyRelease, xev_handle_keyrelease, NULL);
-	XEV_QUICK(NULL, NULL, Expose, xev_handle_expose, NULL);
-	XEV_QUICK(NULL, NULL, DestroyNotify, xev_handle_destroynotify, NULL);
-	XEV_QUICK(NULL, NULL, ClientMessage, xev_handle_clientmessage, NULL);
-	XEV_QUICK(NULL, NULL, MappingNotify, xev_handle_mapping, NULL);
-
 	xev_loop();
 
 	x_teardown();