From 390a417ed5e04da48770ee4b7b1b310a758e5b9e Mon Sep 17 00:00:00 2001
From: John Hawthorn <john.hawthorn@gmail.com>
Date: Sun, 2 Jun 2013 21:22:08 -0700
Subject: XK_0 1:1 zoom

---
 src/xlib.c | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src')

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;
 	}
 }
 
-- 
cgit v1.2.3