From 8339bb7ee7fe4a2598a30e3c4d0cef42329ee5aa Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 4 Feb 2011 00:25:57 +0100 Subject: New key mapping: W, resize window to fit image --- main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 369c1a2..4ce19de 100644 --- a/main.c +++ b/main.c @@ -329,6 +329,10 @@ void on_keypress(XKeyEvent *kev) { win_toggle_fullscreen(&win); /* render on next configurenotify */ break; + case XK_W: + if ((changed = win_resize(&win, img.w * img.zoom, img.h * img.zoom))) + img.checkpan = 1; + break; /* miscellaneous */ case XK_a: -- cgit v1.2.3