/* vt cursor: Black-on-White is standard, but this is more popular */
TermWin_cursor = XCreateFontCursor (dpy, XC_xterm);
-#ifdef HAVE_SCROLLBARS
- /* cursor scrollBar: Black-on-White */
- leftptr_cursor = XCreateFontCursor (dpy, XC_left_ptr);
-#endif
-
/* the vt window */
vt = XCreateSimpleWindow (dpy, top,
window_vt_x, window_vt_y,
char * incr_buf;
size_t incr_buf_size, incr_buf_fill;
/* ---------- */
- Cursor leftptr_cursor;
-/* ---------- */
struct mouse_event MEvent;
XComposeStatus compose;
struct termios tio;
#include "perlxsi.c"
#ifdef HAVE_SCROLLBARS
-# define GRAB_CURSOR THIS->leftptr_cursor
+# define GRAB_CURSOR THIS->scrollBar.leftptr_cursor
#else
# define GRAB_CURSOR None
#endif
#define IOM_CLASS "urxvt"
#define IOM_WARN rxvt_warn
-#include <iom_perl.h>
+#include "iom_perl.h"
/////////////////////////////////////////////////////////////////////////////
0,
pix_colors[Color_fg],
pix_colors[Color_border]);
- XDefineCursor (dpy, scrollBar.win, leftptr_cursor);
+ XDefineCursor (dpy, scrollBar.win, scrollBar.leftptr_cursor);
XSelectInput (dpy, scrollBar.win,
ExposureMask | ButtonPressMask | ButtonReleaseMask
scrollBar.align = R_SB_ALIGN_BOTTOM;
}
scrollBar.last_bot = scrollBar.last_state = -1;
+ /* cursor scrollBar: Black-on-White */
+ scrollBar.leftptr_cursor = XCreateFontCursor (dpy, XC_left_ptr);
#endif
}
int len;
unsigned char align;
Window win;
+ Cursor leftptr_cursor;
int (rxvt_term::*update)(int, int, int, int);
void setIdle() { state = 1 ; }