-- 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:
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
--- 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
--- 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
--- 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
--- 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