aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}