repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: f3f59ed9656ff1d0ba53083aaea1d949d6d521e1:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit f3f59ed9656ff1d0ba53083aaea1d949d6d521e1
Author: Emanuele Giaquinta 
Date:   Mon Dec 26 14:53:56 2011 +0000

    Fix update of geometry flags when parsing styles.

diff --git a/src/background.C b/src/background.C
index a8e18aa4d1b69df7b650ff6eef96185850730001..
index ..ddab73199dba673f51261107bf664baccf9facb5 100644
--- a/src/background.C
+++ b/src/background.C
@@ -183,7 +183,7 @@ rxvt_term::bg_set_geometry (const char *geom, bool update)
   int geom_flags = 0;
   int x = 0, y = 0;
   unsigned int w = 0, h = 0;
-  unsigned long new_flags = bg_flags & ~BG_GEOMETRY_FLAGS;
+  unsigned long new_flags = 0;

   if (geom == NULL)
     return false;
@@ -286,6 +286,8 @@ rxvt_term::bg_set_geometry (const char *geom, bool update)
       rxvt_free_strsplit (arr);
     }

+  new_flags |= bg_flags & ~BG_GEOMETRY_FLAGS;
+
   if (!update)
     {
       if (!(geom_flags & XValue))

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