Loading ChangeLog +1 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ git HEAD * Do not apply --scale-down to the thumbnail window. It will be applied to windows opened from this, though. * Patch by Rob Cornish: Respect --image-bg when setting a wallpaper * Fix --bg-max not respecting --image-bg setting (thanks, 12qu) Tue, 16 Oct 2012 06:29:58 +0200 Daniel Friesel <derf+feh@finalrewind.org> Loading src/wallpaper.c +3 −6 Original line number Diff line number Diff line Loading @@ -190,6 +190,9 @@ static void feh_wm_set_bg_maxed(Pixmap pmap, Imlib_Image im, int use_filelist, void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, int filled, int desktop, int use_filelist) { XGCValues gcvalues; XGCValues gcval; GC gc; char bgname[20]; int num = (int) rand(); char bgfil[4096]; Loading Loading @@ -264,8 +267,6 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, Display *disp2; Window root2; int depth2; XGCValues gcvalues; GC gc; int in, out, w, h; if (opt.xinerama) Loading Loading @@ -322,8 +323,6 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, 0, 0, scr->width, scr->height); fehbg = estrjoin(" ", "feh", fehbg_xinerama, "--bg-scale", filbuf, NULL); } else if (centered) { XGCValues gcval; GC gc; D(("centering\n")); Loading Loading @@ -368,14 +367,12 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, fehbg = estrjoin(" ", "feh", fehbg_xinerama, "--bg-fill", filbuf, NULL); } else if (filled == 2) { XGCValues gcval; pmap_d1 = XCreatePixmap(disp, root, scr->width, scr->height, depth); if (opt.image_bg == IMAGE_BG_WHITE) gcval.foreground = WhitePixel(disp, DefaultScreen(disp)); else gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); gc = XCreateGC(disp, root, GCForeground, &gcval); XFillRectangle(disp, pmap_d1, gc, 0, 0, scr->width, scr->height); Loading Loading
ChangeLog +1 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ git HEAD * Do not apply --scale-down to the thumbnail window. It will be applied to windows opened from this, though. * Patch by Rob Cornish: Respect --image-bg when setting a wallpaper * Fix --bg-max not respecting --image-bg setting (thanks, 12qu) Tue, 16 Oct 2012 06:29:58 +0200 Daniel Friesel <derf+feh@finalrewind.org> Loading
src/wallpaper.c +3 −6 Original line number Diff line number Diff line Loading @@ -190,6 +190,9 @@ static void feh_wm_set_bg_maxed(Pixmap pmap, Imlib_Image im, int use_filelist, void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, int filled, int desktop, int use_filelist) { XGCValues gcvalues; XGCValues gcval; GC gc; char bgname[20]; int num = (int) rand(); char bgfil[4096]; Loading Loading @@ -264,8 +267,6 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, Display *disp2; Window root2; int depth2; XGCValues gcvalues; GC gc; int in, out, w, h; if (opt.xinerama) Loading Loading @@ -322,8 +323,6 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, 0, 0, scr->width, scr->height); fehbg = estrjoin(" ", "feh", fehbg_xinerama, "--bg-scale", filbuf, NULL); } else if (centered) { XGCValues gcval; GC gc; D(("centering\n")); Loading Loading @@ -368,14 +367,12 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, fehbg = estrjoin(" ", "feh", fehbg_xinerama, "--bg-fill", filbuf, NULL); } else if (filled == 2) { XGCValues gcval; pmap_d1 = XCreatePixmap(disp, root, scr->width, scr->height, depth); if (opt.image_bg == IMAGE_BG_WHITE) gcval.foreground = WhitePixel(disp, DefaultScreen(disp)); else gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); gc = XCreateGC(disp, root, GCForeground, &gcval); XFillRectangle(disp, pmap_d1, gc, 0, 0, scr->width, scr->height); Loading