*** empty log message ***
authorroot <root>
Wed, 27 Feb 2008 01:05:55 +0000 (01:05 +0000)
committerroot <root>
Wed, 27 Feb 2008 01:05:55 +0000 (01:05 +0000)
Changes
src/main.C

diff --git a/Changes b/Changes
index 593aaa39187528c2c456c04a0b508d8e0d89746a..de34e4cdd1fdef17f016d3cd031b3f799b02242a 100644 (file)
--- a/Changes
+++ b/Changes
@@ -21,8 +21,12 @@ TODO: fix perl doc for $term->ROW_t
 TODO: coloured pastebin
 TODO: maybe unlink the RXVT_SOCKET on exit?
 
+TODO: rxvt -font 10x20 -xrm "*.tabbed.font: 10x20" -pe tabbed
+      how does one affect the tab windows themselves? seems not to work anymore.
+
        - made tabs moveable (based on a patch by Petr Machata).
         - support relative paths for RXVT_SOCKET in urxvtd.
+        - better diagnostic on 0x0 window geometries.
        
 9.02 Tue Jan 29 11:58:36 CET 2008
        - the "exg makes everybody happy" release.
index 2cb48f8197caa52291264a2175dc593e2e470d2c..a94cb295f65998032558fa8b8d258d2006a02c6b 100644 (file)
@@ -524,13 +524,19 @@ rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
 
       if (flags & WidthValue)
         {
-          ncol = clamp (w, 0, std::numeric_limits<int16_t>::max ());
+          if (!w)
+            rxvt_fatal ("illegal window geometry (width and height must be non-zero), aborting.\n");
+
+          ncol = clamp (w, 1, std::numeric_limits<int16_t>::max ());
           szHint.flags |= USSize;
         }
 
       if (flags & HeightValue)
         {
-          nrow = clamp (h, 0, std::numeric_limits<int16_t>::max ());
+          if (!h)
+            rxvt_fatal ("illegal window geometry (width and height must be non-zero), aborting.\n");
+
+          nrow = clamp (h, 1, std::numeric_limits<int16_t>::max ());
           szHint.flags |= USSize;
         }
 
@@ -561,9 +567,6 @@ rxvt_term::window_calc (unsigned int newwidth, unsigned int newheight)
                 szHint.win_gravity = SouthWestGravity;
             }
         }
-
-      if (!szHint.width || !szHint.height)
-        rxvt_fatal ("window width or height must not be zero, aborting.\n");
     }
 
   /* TODO: BOUNDS */