aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 2 insertions, 12 deletions
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;