… | |
… | |
41 | #include <limits> |
41 | #include <limits> |
42 | |
42 | |
43 | #include <signal.h> |
43 | #include <signal.h> |
44 | |
44 | |
45 | #include <fcntl.h> |
45 | #include <fcntl.h> |
|
|
46 | |
|
|
47 | #ifdef HAVE_XMU |
|
|
48 | # include <X11/Xmu/CurUtil.h> |
|
|
49 | #endif |
46 | |
50 | |
47 | #ifdef HAVE_XSETLOCALE |
51 | #ifdef HAVE_XSETLOCALE |
48 | # define X_LOCALE |
52 | # define X_LOCALE |
49 | # include <X11/Xlocale.h> |
53 | # include <X11/Xlocale.h> |
50 | #else |
54 | #else |
… | |
… | |
1403 | | ExposureMask | StructureNotifyMask); |
1407 | | ExposureMask | StructureNotifyMask); |
1404 | |
1408 | |
1405 | termwin_ev.start (display, top); |
1409 | termwin_ev.start (display, top); |
1406 | |
1410 | |
1407 | /* vt cursor: Black-on-White is standard, but this is more popular */ |
1411 | /* vt cursor: Black-on-White is standard, but this is more popular */ |
|
|
1412 | unsigned int shape = XC_xterm; |
|
|
1413 | |
|
|
1414 | #ifdef HAVE_XMU |
|
|
1415 | if (rs[Rs_pointerShape]) |
|
|
1416 | { |
|
|
1417 | int stmp = XmuCursorNameToIndex (rs[Rs_pointerShape]); |
|
|
1418 | if (stmp >= 0) |
|
|
1419 | shape = stmp; |
|
|
1420 | } |
|
|
1421 | #endif |
|
|
1422 | |
1408 | TermWin_cursor = XCreateFontCursor (dpy, XC_xterm); |
1423 | TermWin_cursor = XCreateFontCursor (dpy, shape); |
1409 | |
1424 | |
1410 | /* the vt window */ |
1425 | /* the vt window */ |
1411 | vt = XCreateSimpleWindow (dpy, top, |
1426 | vt = XCreateSimpleWindow (dpy, top, |
1412 | window_vt_x, window_vt_y, |
1427 | window_vt_x, window_vt_y, |
1413 | vt_width, vt_height, |
1428 | vt_width, vt_height, |