-- 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: 52de0c3a8273cff92fb644e9ef14dc52461c967d:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

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

commit 52de0c3a8273cff92fb644e9ef14dc52461c967d
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Sun Dec 30 23:45:42 2007 +0000

    Move scrollbar_align from rxvt_xterm to scrollBar_t.

diff --git a/src/command.C b/src/command.C

index b0481be843f82963c5cb044c39d3f0abbf5839dc..

index ..23ca15cd0bf90d859852fcc7f87c05cbfff39370 100644

--- a/src/command.C
+++ b/src/command.C
@@ -2009,7 +2009,7 @@ rxvt_term::button_press (XButtonEvent &ev)
             switch (ev.button)
               {
                 case Button2:
-                  switch (scrollbar_align)
+                  switch (scrollBar.align)
                     {
                       case R_SB_ALIGN_TOP:
                         csrO = 0;
@@ -2031,7 +2031,7 @@ rxvt_term::button_press (XButtonEvent &ev)
                   break;

                 case Button1:
-                  if (scrollbar_align == R_SB_ALIGN_CENTRE)
+                  if (scrollBar.align == R_SB_ALIGN_CENTRE)
                     csrO = ev.y - scrollBar.top;
                   /* FALLTHROUGH */

diff --git a/src/rxvt.h b/src/rxvt.h

index c8673691258f36e642be8680560ceeb22cc73044..

index ..67471377b6054be8ec62d269b307843a217de330 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -978,7 +978,6 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
 #ifdef META8_OPTION
                   meta_char,            /* Alt-key prefix */
 #endif
-                  scrollbar_align,
                   selection_wait,
                   selection_type;
 /* ---------- */
diff --git a/src/scrollbar.C b/src/scrollbar.C

index f0e35a6ad2d90d87424bf9819cdbe37ee04b316e..

index ..075d51b1c99910843e3b89d3bdbc92e48640ef3a 100644

--- a/src/scrollbar.C
+++ b/src/scrollbar.C
@@ -238,13 +238,13 @@ rxvt_term::setup_scrollbar (const char *scrollalign, const char *scrollstyle, co
   scrollBar.style = style;
   scrollBar.width = width;

-  /* scrollbar_align = R_SB_ALIGN_CENTRE; */
+  /* scrollBar.align = R_SB_ALIGN_CENTRE; */
   if (scrollalign)
     {
       if (strncasecmp (scrollalign, "top", 3) == 0)
-        scrollbar_align = R_SB_ALIGN_TOP;
+        scrollBar.align = R_SB_ALIGN_TOP;
       else if (strncasecmp (scrollalign, "bottom", 6) == 0)
-        scrollbar_align = R_SB_ALIGN_BOTTOM;
+        scrollBar.align = R_SB_ALIGN_BOTTOM;
     }
 #endif
 }
diff --git a/src/scrollbar.h b/src/scrollbar.h

index 14454a2b5acdf7cd5269adcc16b84e964c7b8501..

index ..87e3f92ee541ecdbeecc5618ae279d42cc6466b7 100644

--- a/src/scrollbar.h
+++ b/src/scrollbar.h
@@ -15,6 +15,7 @@ typedef struct {
   unsigned int    style;        /* style: rxvt, xterm, next                 */
   unsigned int    width;        /* scrollbar width                          */
   int             shadow;       /* scrollbar shadow width                   */
+  unsigned char   align;
   Window          win;
   int             (rxvt_term::*update)(int, int, int, int);

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

-- Response ended

-- Page fetched on Sun Jun 2 11:27:41 2024