Bugzilla – Attachment 1036 Details for
Bug 3054
xsri isn't included in most distributions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to select background colour for transparent pics
transparent-bg.patch (text/plain), 2.05 KB, created by
Linn
on 2022-05-10 09:31:47 CEST
(
hide
)
Description:
Patch to select background colour for transparent pics
Filename:
MIME Type:
Creator:
Linn
Created:
2022-05-10 09:31:47 CEST
Size:
2.05 KB
patch
obsolete
>diff -urN feh_orig/src/wallpaper.c feh/src/wallpaper.c >--- feh_orig/src/wallpaper.c 2022-05-05 13:36:26.178993801 +0200 >+++ feh/src/wallpaper.c 2022-05-06 11:30:26.723017583 +0200 >@@ -441,16 +441,13 @@ > XAllocNamedColor(disp, cmap, "black", &color, &color); > > if (scaled) { >+ > pmap_d1 = XCreatePixmap(disp, root, scr->width, scr->height, depth); >+ gcval.foreground = color.pixel; >+ gc = XCreateGC(disp, root, GCForeground, &gcval); >+ XFillRectangle(disp, pmap_d1, gc, 0, 0, scr->width, scr->height); > > #ifdef HAVE_LIBXINERAMA >- if (opt.xinerama_index >= 0) { >- gcval.foreground = color.pixel; >- gc = XCreateGC(disp, root, GCForeground, &gcval); >- XFillRectangle(disp, pmap_d1, gc, 0, 0, scr->width, scr->height); >- XFreeGC(disp, gc); >- } >- > if (opt.xinerama && xinerama_screens) { > for (i = 0; i < num_xinerama_screens; i++) { > if (opt.xinerama_index < 0 || opt.xinerama_index == i) { >@@ -464,6 +461,9 @@ > #endif /* HAVE_LIBXINERAMA */ > feh_wm_set_bg_scaled(pmap_d1, im, use_filelist, > 0, 0, scr->width, scr->height); >+ >+ XFreeGC(disp, gc); >+ > } else if (centered) { > > D(("centering\n")); >@@ -493,15 +493,11 @@ > } else if (filled == 1) { > > pmap_d1 = XCreatePixmap(disp, root, scr->width, scr->height, depth); >+ gcval.foreground = color.pixel; >+ gc = XCreateGC(disp, root, GCForeground, &gcval); >+ XFillRectangle(disp, pmap_d1, gc, 0, 0, scr->width, scr->height); > > #ifdef HAVE_LIBXINERAMA >- if (opt.xinerama_index >= 0) { >- gcval.foreground = color.pixel; >- gc = XCreateGC(disp, root, GCForeground, &gcval); >- XFillRectangle(disp, pmap_d1, gc, 0, 0, scr->width, scr->height); >- XFreeGC(disp, gc); >- } >- > if (opt.xinerama && xinerama_screens) { > for (i = 0; i < num_xinerama_screens; i++) { > if (opt.xinerama_index < 0 || opt.xinerama_index == i) { >@@ -516,6 +512,8 @@ > feh_wm_set_bg_filled(pmap_d1, im, use_filelist > , 0, 0, scr->width, scr->height); > >+ XFreeGC(disp, gc); >+ > } else if (filled == 2) { > > pmap_d1 = XCreatePixmap(disp, root, scr->width, scr->height, depth);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3054
: 1036