"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/winwidget.c" between
feh-3.9.tar.bz2 and feh-3.9.1.tar.bz2

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

winwidget.c  (feh-3.9.tar.bz2):winwidget.c  (feh-3.9.1.tar.bz2)
skipping to change at line 741 skipping to change at line 741
if (inotify_rm_watch(opt.inotify_fd, winwid->inotify_wd)) if (inotify_rm_watch(opt.inotify_fd, winwid->inotify_wd))
weprintf("inotify_rm_watch failed:"); weprintf("inotify_rm_watch failed:");
winwid->inotify_wd = -1; winwid->inotify_wd = -1;
} }
} }
#endif #endif
#ifdef HAVE_INOTIFY #ifdef HAVE_INOTIFY
void winwidget_inotify_add(winwidget winwid, feh_file * file) void winwidget_inotify_add(winwidget winwid, feh_file * file)
{ {
if (opt.auto_reload) { if (opt.auto_reload && !path_is_url(file->filename)) {
D(("Adding inotify watch for %s\n", file->filename)); D(("Adding inotify watch for %s\n", file->filename));
char dir[PATH_MAX]; char dir[PATH_MAX];
feh_file_dirname(dir, file, PATH_MAX); feh_file_dirname(dir, file, PATH_MAX);
/* /*
* Handle files without directory part, e.g. "feh somefile.jpg". * Handle files without directory part, e.g. "feh somefile.jpg".
* These always reside in the current directory. * These always reside in the current directory.
*/ */
if (dir[0] == '\0') { if (dir[0] == '\0') {
dir[0] = '.'; dir[0] = '.';
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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