New key mapping: W, resize window to fit image

This commit is contained in:
Bert
2011-02-04 00:25:57 +01:00
parent 096c0ed935
commit 8339bb7ee7
5 changed files with 63 additions and 23 deletions

4
main.c
View File

@ -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: