ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/scrollbar.C
(Generate patch)

Comparing rxvt-unicode/src/scrollbar.C (file contents):
Revision 1.54 by ayin, Sun Feb 17 12:21:45 2008 UTC vs.
Revision 1.55 by ayin, Mon Feb 18 09:58:05 2008 UTC

61 61
62void 62void
63rxvt_term::resize_scrollbar () 63rxvt_term::resize_scrollbar ()
64{ 64{
65 int delayed_init = 0; 65 int delayed_init = 0;
66 int window_sb_x = 0;
67
68 if (option (Opt_scrollBar_right))
69 window_sb_x = szHint.width - scrollBar.total_width ();
66 70
67#define R_SCROLLBEG_XTERM 0 71#define R_SCROLLBEG_XTERM 0
68#define R_SCROLLEND_XTERM szHint.height 72#define R_SCROLLEND_XTERM szHint.height
69#define R_SCROLLBEG_NEXT 0 73#define R_SCROLLBEG_NEXT 0
70#define R_SCROLLEND_NEXT szHint.height - (SB_BUTTON_TOTAL_HEIGHT + \ 74#define R_SCROLLEND_NEXT szHint.height - (SB_BUTTON_TOTAL_HEIGHT + \
125 | Button3MotionMask); 129 | Button3MotionMask);
126 scrollbar_ev.start (display, scrollBar.win); 130 scrollbar_ev.start (display, scrollBar.win);
127 131
128 delayed_init = 1; 132 delayed_init = 1;
129 } 133 }
134 else
135 XMoveResizeWindow (dpy, scrollBar.win,
136 window_sb_x, 0,
137 scrollBar.total_width (), szHint.height);
130 138
131 scrollbar_show (1); 139 scrollbar_show (1);
132 140
133 if (delayed_init) 141 if (delayed_init)
134 XMapWindow (dpy, scrollBar.win); 142 XMapWindow (dpy, scrollBar.win);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines