imlib2_view: Cosmetics (if -> switch)

This commit is contained in:
Kim Woelders 2021-12-17 09:46:31 +01:00
parent 104f330c9f
commit 45575222f5
1 changed files with 12 additions and 6 deletions

View File

@ -348,12 +348,18 @@ main(int argc, char **argv)
while (XCheckTypedWindowEvent(disp, win, KeyPress, &ev))
;
key = XLookupKeysym(&ev.xkey, 0);
if (key == XK_q || key == XK_Escape)
goto quit;
if (key == XK_Right)
goto show_next;
if (key == XK_Left)
goto show_prev;
switch (key)
{
default:
break;
case XK_q:
case XK_Escape:
goto quit;
case XK_Right:
goto show_next;
case XK_Left:
goto show_prev;
}
break;
case ButtonPress:
b = ev.xbutton.button;