diff options
Diffstat (limited to 'src/keyevents.c')
-rw-r--r-- | src/keyevents.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 83fc358..4c1ed28 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -731,9 +731,8 @@ void feh_event_handle_keypress(XEvent * ev) break; } } - if (getenv("XINERAMA_SCREEN")) - curr_screen = xinerama_screen = - atoi(getenv("XINERAMA_SCREEN")); + if (opt.xinerama_index >= 0) + curr_screen = xinerama_screen = opt.xinerama_index; } #endif /* HAVE_LIBXINERAMA */ winwid->full_screen = !winwid->full_screen; |