diff options
author | Bert <ber.t@gmx.com> | 2011-01-20 21:44:34 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-20 21:44:34 +0100 |
commit | 029e1208b91250f4bd91ecc2015d051294fb9d3f (patch) | |
tree | c746d1a81e7babb17283d2326bdd2dea310eb4ed /main.c | |
parent | 08018427c61435de9cd8dca1d1cc9bb69ca2fd74 (diff) | |
download | nsxiv-029e1208b91250f4bd91ecc2015d051294fb9d3f.tar.zst |
No more expose handling
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -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; |