aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2013-06-02 21:22:08 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2013-08-03 14:26:22 -0700
commit390a417ed5e04da48770ee4b7b1b310a758e5b9e (patch)
treeccd226b19f53833f0f896eeab1cd60e8e3aec790 /src
parentff2d82f72e226af17db96001bb1fee13f9d82c6e (diff)
downloadmirror-meh-390a417ed5e04da48770ee4b7b1b310a758e5b9e.tar.gz
mirror-meh-390a417ed5e04da48770ee4b7b1b310a758e5b9e.tar.bz2
mirror-meh-390a417ed5e04da48770ee4b7b1b310a758e5b9e.zip
XK_0 1:1 zoom
Diffstat (limited to 'src')
-rw-r--r--src/xlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xlib.c b/src/xlib.c
index 0558689..fc6895d 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -213,6 +213,10 @@ void handlekeypress(XEvent *event){
case XK_r:
key_reload();
break;
+ case XK_0:
+ if(curimg)
+ XResizeWindow(display, window, curimg->bufwidth, curimg->bufheight);
+ break;
}
}