-- 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: 881d6c964e41da36748f0f7cf6e49d9d15c88a17:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

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

commit 881d6c964e41da36748f0f7cf6e49d9d15c88a17
Author: Mikael Magnusson <mikachu@gmail.com>
Date:   Sat Dec 17 01:05:09 2011 +0000

    Fix alignment of root pixmap when size differs from root window

diff --git a/Changes b/Changes

index 3c54195a2f04f91b3736c43b90544803781324b6..

index ..9533b55ded839bef306365ed4792467de2de2582 100644

--- a/Changes
+++ b/Changes
@@ -64,6 +64,9 @@ TODO: split ROW into a ROW_fast (0..total*2-1) and ROW macros?
 	- Support for the freedesktop startup-notification protocol (patch by
 	  Michael Stapelberg).
         - the direction of VPR and VPB commands was reversed.
+	- Fix alignment of inherited root pixmap when it is a different size
+	  than the root window and the terminal window is off the left or top
+	  edge (Mikachu).

 9.12 Wed Jun 29 14:34:28 CEST 2011
         - fix regression in processing of SelectionNotify events.
diff --git a/src/background.C b/src/background.C

index f67270faab5d290958ce9254915bad74986a7007..

index ..5d42bce1ef40194019eced0d7c897dcef3df4d2f 100644

--- a/src/background.C
+++ b/src/background.C
@@ -1279,8 +1279,8 @@ rxvt_term::make_transparency_pixmap ()
     }

   /* straightforward pixmap copy */
-  while (sx < 0) sx += root_width;
-  while (sy < 0) sy += root_height;
+  while (sx < 0) sx += root_pmap_width;
+  while (sy < 0) sy += root_pmap_height;

   gcv.tile = recoded_root_pmap;
   gcv.fill_style = FillTiled;

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 12:07:05 2024