-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: aae4cf27bd86eba72a022c2d211093ea2aae0ea5: path_to: revision_to:
commit aae4cf27bd86eba72a022c2d211093ea2aae0ea5 Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com> Date: Thu Jun 7 09:34:51 2012 +0000 Add a flag to inhibit bg image management in core. diff --git a/src/background.C b/src/background.C
--- a/src/background.C +++ b/src/background.C @@ -1109,6 +1109,9 @@ rxvt_term::bg_set_root_pixmap () void rxvt_term::bg_render () { + if (bg_flags & BG_INHIBIT_RENDER) + return; + bg_invalidate (); # if ENABLE_TRANSPARENCY if (bg_flags & BG_IS_TRANSPARENT) diff --git a/src/rxvt.h b/src/rxvt.h
--- a/src/rxvt.h +++ b/src/rxvt.h @@ -1195,6 +1195,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen BG_IS_TRANSPARENT = 1 << 1, BG_NEEDS_REFRESH = 1 << 2, + BG_INHIBIT_RENDER = 1 << 3, }; uint8_t bg_flags; diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs
--- a/src/rxvtperl.xs +++ b/src/rxvtperl.xs @@ -2094,7 +2094,7 @@ rxvt_term::set_background (rxvt_img *img) CODE: THIS->bg_destroy (); THIS->bg_pixmap = None; - THIS->bg_flags &= ~rxvt_term::BG_NEEDS_REFRESH; + THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER); if (img) // TODO: cannot be false { @@ -2102,7 +2102,7 @@ rxvt_term::set_background (rxvt_img *img) rxvt_img *img2 = img->convert_to (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg]); delete img; THIS->bg_pixmap = img2->steal (); - THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH; + THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER; THIS->bg_valid_since = ev::now (); // TODO: extra bloat }
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 11:49:53 2024