*** empty log message ***
authorroot <root>
Mon, 23 Aug 2004 19:57:33 +0000 (19:57 +0000)
committerroot <root>
Mon, 23 Aug 2004 19:57:33 +0000 (19:57 +0000)
reconf
src/scrollbar-plain.C
src/scrollbar-rxvt.C
src/scrollbar-xterm.C

diff --git a/reconf b/reconf
index c2a6c3e4fb40875a0344972580fe79858e2e7c01..751107c4aec7d01ba5f525231a39f27b624119dc 100755 (executable)
--- a/reconf
+++ b/reconf
@@ -5,10 +5,12 @@
 
 ./configure --prefix=/opt/rxvt --enable-utmp \
             --enable-wtmp --enable-lastlog --disable-strings --enable-xim \
-            --with-term=rxvt --disable-keepscrolling --enable-xft --enable-mousewheel \
+            --disable-keepscrolling --enable-xft --enable-mousewheel \
             --with-name=rxvt --enable-selectionscrolling --enable-pointer-blank \
             --enable-frills --enable-swapscreen --enable-transparency --enable-slipwheeling \
-            --with-codesets=all --enable-menubar --enable-tinting \
+            --with-codesets=cn,jp,kr --enable-menubar --enable-tinting \
             --enable-cursor-blink --enable-text-blink --enable-fading \
             --enable-plain-scroll --enable-rxvt-scroll --enable-combining --enable-iso14755 \
+            --enable-font-styles \
+            --enable-next-scroll --enable-xterm-scroll \
             "$@"
index 381860988eb71607df30691d4108bc3e8346be17..d76427e1ac2952dcd9902b43bbe9dc78ab63383c 100644 (file)
@@ -28,7 +28,7 @@
 #if defined(PLAIN_SCROLLBAR)
 
 int
-rxvt_term::scrollbar_show_plain (int update __attribute__ ((unused)), int last_top, int last_bot, int scrollbar_len)
+rxvt_term::scrollbar_show_plain (int update, int last_top, int last_bot, int scrollbar_len)
 {
   int xsb = 0;
   int sbwidth = scrollBar.width - 1;
@@ -38,23 +38,28 @@ rxvt_term::scrollbar_show_plain (int update __attribute__ ((unused)), int last_t
       XGCValues gcvalue;
 
       scrollBar.init |= R_SB_PLAIN;
-      gcvalue.foreground = pix_colors[Color_fg];
-      gcvalue.background = pix_colors[Color_bg];
+      gcvalue.foreground = pix_colors_focused[Color_scroll];
 
       pscrollbarGC = XCreateGC (display->display, scrollBar.win,
-                                GCForeground | GCBackground, &gcvalue);
+                                GCForeground, &gcvalue);
     }
-  /* instead of XClearWindow (display->display, scrollBar.win); */
+
   xsb = (options & Opt_scrollBar_right) ? 1 : 0;
-  if (last_top < scrollBar.top)
-    XClearArea (display->display, scrollBar.win,
-                sb_shadow + xsb, last_top,
-                sbwidth + 1, (scrollBar.top - last_top), False);
 
-  if (scrollBar.bot < last_bot)
-    XClearArea (display->display, scrollBar.win,
-                sb_shadow + xsb, scrollBar.bot,
-                sbwidth + 1, (last_bot - scrollBar.bot), False);
+  if (update)
+    {
+      if (last_top < scrollBar.top)
+        XClearArea (display->display, scrollBar.win,
+                    sb_shadow + xsb, last_top,
+                    sbwidth + 1, (scrollBar.top - last_top), False);
+
+      if (scrollBar.bot < last_bot)
+        XClearArea (display->display, scrollBar.win,
+                    sb_shadow + xsb, scrollBar.bot,
+                    sbwidth + 1, (last_bot - scrollBar.bot), False);
+    }
+  else
+    XClearWindow (display->display, scrollBar.win);
 
   /* scrollbar slider */
   XFillRectangle (display->display, scrollBar.win, pscrollbarGC,
index c9e0cca0938ba89d7aae82f5ffa79461eb39260e..3bf41834e4445b6f836bdd5f70eaee6a67cf495a 100644 (file)
@@ -123,34 +123,38 @@ rxvt_term::Draw_button (int x, int y, int state, int dirn)
 }
 
 int
-rxvt_term::scrollbar_show_rxvt (int update __attribute__ ((unused)), int last_top, int last_bot, int scrollbar_len)
+rxvt_term::scrollbar_show_rxvt (int update, int last_top, int last_bot, int scrollbar_len)
 {
-  int             sbshadow = sb_shadow;
-  int             sbwidth = (int)scrollBar.width;
+  int sbshadow = sb_shadow;
+  int sbwidth = (int)scrollBar.width;
 
   if ((scrollBar.init & R_SB_RXVT) == 0)
     {
       scrollBar.init |= R_SB_RXVT;
       if (sbshadow)
         {
-          XSetWindowBackground (display->display, scrollBar.win, pix_colors[Color_trough]);
+          XSetWindowBackground (display->display, scrollBar.win, pix_colors_focused[Color_trough]);
           XClearWindow (display->display, scrollBar.win);
         }
     }
   else
     {
-      /* instead of XClearWindow (display->display, scrollBar.win); */
-      if (last_top < scrollBar.top)
-        XClearArea (display->display, scrollBar.win,
-                    sbshadow, last_top,
-                    sbwidth, (scrollBar.top - last_top),
-                    False);
-
-      if (scrollBar.bot < last_bot)
-        XClearArea (display->display, scrollBar.win,
-                    sbshadow, scrollBar.bot,
-                    sbwidth, (last_bot - scrollBar.bot),
-                    False);
+      if (update)
+        {
+          if (last_top < scrollBar.top)
+            XClearArea (display->display, scrollBar.win,
+                        sbshadow, last_top,
+                        sbwidth, (scrollBar.top - last_top),
+                        False);
+
+          if (scrollBar.bot < last_bot)
+            XClearArea (display->display, scrollBar.win,
+                        sbshadow, scrollBar.bot,
+                        sbwidth, (last_bot - scrollBar.bot),
+                        False);
+        }
+      else
+        XClearWindow (display->display, scrollBar.win);
     }
 
   /* scrollbar slider */
index 366963b1c75b25b2c76e6af582d562cfc4f4f254..ae63e805099858325814bb5dca3d57d8066cfbaa 100644 (file)
 const unsigned char x_stp_bits[] = { 0xaa, 0x55 };
 
 int
-rxvt_term::scrollbar_show_xterm (int update __attribute__ ((unused)), int last_top, int last_bot, int scrollbar_len)
+rxvt_term::scrollbar_show_xterm (int update, int last_top, int last_bot, int scrollbar_len)
 {
-  int             xsb = 0;
-  int             sbwidth = scrollBar.width - 1;
+  int xsb = 0;
+  int sbwidth = scrollBar.width - 1;
 
   if ((scrollBar.init & R_SB_XTERM) == 0)
     {
@@ -49,26 +49,31 @@ rxvt_term::scrollbar_show_xterm (int update __attribute__ ((unused)), int last_t
         rxvt_fatal ("can't create bitmap\n");
 
       gcvalue.fill_style = FillOpaqueStippled;
-      gcvalue.foreground = pix_colors[Color_fg];
-      gcvalue.background = pix_colors[Color_bg];
+      gcvalue.foreground = pix_colors_focused[Color_fg];
+      gcvalue.background = pix_colors_focused[Color_bg];
 
       xscrollbarGC = XCreateGC (display->display, scrollBar.win,
                                 GCForeground | GCBackground
                                 | GCFillStyle | GCStipple, &gcvalue);
-      gcvalue.foreground = pix_colors[Color_border];
+      gcvalue.foreground = pix_colors_focused[Color_border];
       ShadowGC = XCreateGC (display->display, scrollBar.win, GCForeground, &gcvalue);
     }
-  /* instead of XClearWindow (display->display, scrollBar.win); */
-  xsb = (options & Opt_scrollBar_right) ? 1 : 0;
-  if (last_top < scrollBar.top)
-    XClearArea (display->display, scrollBar.win,
-               sb_shadow + xsb, last_top,
-               sbwidth, (scrollBar.top - last_top), False);
 
-  if (scrollBar.bot < last_bot)
-    XClearArea (display->display, scrollBar.win,
-               sb_shadow + xsb, scrollBar.bot,
-               sbwidth, (last_bot - scrollBar.bot), False);
+  if (update)
+    {
+      xsb = (options & Opt_scrollBar_right) ? 1 : 0;
+      if (last_top < scrollBar.top)
+        XClearArea (display->display, scrollBar.win,
+                   sb_shadow + xsb, last_top,
+                   sbwidth, (scrollBar.top - last_top), False);
+
+      if (scrollBar.bot < last_bot)
+        XClearArea (display->display, scrollBar.win,
+                   sb_shadow + xsb, scrollBar.bot,
+                   sbwidth, (last_bot - scrollBar.bot), False);
+    }
+  else
+    XClearWindow (display->display, scrollBar.win);
 
   /* scrollbar slider */
   XFillRectangle (display->display, scrollBar.win, xscrollbarGC,