"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main.c" between
feh-2.28.1.tar.bz2 and feh-3.0.tar.bz2

About: feh is an X11 image viewer aimed mostly at console users.

main.c  (feh-2.28.1.tar.bz2):main.c  (feh-3.0.tar.bz2)
skipping to change at line 62 skipping to change at line 62
if (opt.display) { if (opt.display) {
init_x_and_imlib(); init_x_and_imlib();
init_keyevents(); init_keyevents();
init_buttonbindings(); init_buttonbindings();
} }
feh_event_init(); feh_event_init();
if (opt.index) if (opt.index)
init_index_mode(); init_index_mode();
else if (opt.collage)
init_collage_mode();
else if (opt.multiwindow) else if (opt.multiwindow)
init_multiwindow_mode(); init_multiwindow_mode();
else if (opt.list || opt.customlist) else if (opt.list || opt.customlist)
init_list_mode(); init_list_mode();
else if (opt.loadables) else if (opt.loadables)
init_loadables_mode(); init_loadables_mode();
else if (opt.unloadables) else if (opt.unloadables)
init_unloadables_mode(); init_unloadables_mode();
else if (opt.thumbs) else if (opt.thumbs)
init_thumbnail_mode(); init_thumbnail_mode();
skipping to change at line 221 skipping to change at line 219
if (window_num == 0 || sig_exit != 0) if (window_num == 0 || sig_exit != 0)
return(0); return(0);
return(1); return(1);
} }
void feh_clean_exit(void) void feh_clean_exit(void)
{ {
delete_rm_files(); delete_rm_files();
free(opt.menu_bg);
free(opt.menu_font); free(opt.menu_font);
if(disp) if(disp)
XCloseDisplay(disp); XCloseDisplay(disp);
/* /*
* Only restore the old terminal settings if * Only restore the old terminal settings if
* - we changed them in the first place * - we changed them in the first place
* - stdin still is a terminal (it might have been closed) * - stdin still is a terminal (it might have been closed)
* - stdin still belongs to us (we might have been detached from the * - stdin still belongs to us (we might have been detached from the
 End of changes. 2 change blocks. 
3 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)