summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-20 21:44:34 +0100
committerBert <ber.t@gmx.com>2011-01-20 21:44:34 +0100
commit029e1208b91250f4bd91ecc2015d051294fb9d3f (patch)
treec746d1a81e7babb17283d2326bdd2dea310eb4ed /main.c
parent08018427c61435de9cd8dca1d1cc9bb69ca2fd74 (diff)
downloadnsxiv-029e1208b91250f4bd91ecc2015d051294fb9d3f.tar.zst
No more expose handling
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;