From 029e1208b91250f4bd91ecc2015d051294fb9d3f Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 20 Jan 2011 21:44:34 +0100 Subject: No more expose handling --- main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 4b4eb63..440b9f1 100644 --- a/main.c +++ b/main.c @@ -29,14 +29,12 @@ void on_keypress(XEvent*); void on_configurenotify(XEvent*); -void on_expose(XEvent*); void update_title(); static void (*handler[LASTEvent])(XEvent*) = { - [Expose] = on_expose, - [ConfigureNotify] = on_configurenotify, - [KeyPress] = on_keypress + [KeyPress] = on_keypress, + [ConfigureNotify] = on_configurenotify }; img_t img; @@ -154,14 +152,6 @@ void on_configurenotify(XEvent *ev) { win_configure(&win, &ev->xconfigure); } -void on_expose(XEvent *ev) { - if (!ev) - return; - - img_render(&img, &win, ev->xexpose.x, ev->xexpose.y, - ev->xexpose.width, ev->xexpose.height); -} - void update_title() { int n; -- cgit v1.2.3