diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2018-02-27 19:35:59 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2018-02-27 19:35:59 +0100 | 
| commit | 8eaa39234a54fcdd3c9050a01790b152598af80d (patch) | |
| tree | 9bc602ef2f4061e36c338584e2869c02648d0244 | |
| parent | 740f8151488a500906df70293cb579df7af0bc18 (diff) | |
Handle transparency when setting background images
| -rw-r--r-- | src/wallpaper.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/wallpaper.c b/src/wallpaper.c index cfefb8f..758a81a 100644 --- a/src/wallpaper.c +++ b/src/wallpaper.c @@ -91,7 +91,7 @@ static void feh_wm_set_bg_scaled(Pixmap pmap, Imlib_Image im, int use_filelist,  		feh_wm_load_next(&im);  	gib_imlib_render_image_on_drawable_at_size(pmap, im, x, y, w, h, -			1, 0, !opt.force_aliasing); +			1, 1, !opt.force_aliasing);  	if (use_filelist)  		gib_imlib_free_image_and_decache(im); @@ -132,7 +132,7 @@ static void feh_wm_set_bg_centered(Pixmap pmap, Imlib_Image im, int use_filelist  		y + ((offset_y > 0) ? offset_y : 0),  		w,  		h, -		1, 0, 0); +		1, 1, 0);  	if (use_filelist)  		gib_imlib_free_image_and_decache(im); @@ -212,7 +212,7 @@ static void feh_wm_set_bg_maxed(Pixmap pmap, Imlib_Image im, int use_filelist,  	gib_imlib_render_image_on_drawable_at_size(pmap, im,  		render_x, render_y,  		render_w, render_h, -		1, 0, !opt.force_aliasing); +		1, 1, !opt.force_aliasing);  	if (use_filelist)  		gib_imlib_free_image_and_decache(im); @@ -420,7 +420,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,  			w = gib_imlib_image_get_width(im);  			h = gib_imlib_image_get_height(im);  			pmap_d1 = XCreatePixmap(disp, root, w, h, depth); -			gib_imlib_render_image_on_drawable(pmap_d1, im, 0, 0, 1, 0, 0); +			gib_imlib_render_image_on_drawable(pmap_d1, im, 0, 0, 1, 1, 0);  		}  		if (!opt.no_fehbg) { | 
