-- 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:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

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

index 2940cb2f094f89ed56c0559df1e3830a8e917803..

index ..b0251f1de16f6e4def66db23046617d0ad2f5a0c 100644

--- 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

index a73966f2f524b3b46ab507f597d2ed0573412e20..

index ..ef9ee6ceb51a10fc155c48719c216bc369d6f78e 100644

--- 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

index 3c60c2e8313a5084cac67192c26f608d85a37c35..

index ..72adc46ae2db7c863e98b915e2de44776d8255fc 100644

--- 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