From 7c57259b07feb38b06d052c9e0b5f2970b45a351 Mon Sep 17 00:00:00 2001 From: oga Date: Mon, 18 May 2009 00:14:19 +0000 Subject: 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@ --- calmwm.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'calmwm.c') diff --git a/calmwm.c b/calmwm.c index efbbabe..ffc7cbc 100644 --- a/calmwm.c +++ b/calmwm.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.c,v 1.37 2009/05/17 23:40:57 okan Exp $ + * $Id: calmwm.c,v 1.38 2009/05/18 00:14:19 oga Exp $ */ #include "headers.h" @@ -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(); -- cgit v1.2.3-2-gb3c3