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

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.342 by root, Mon Dec 15 02:04:02 2014 UTC vs.
Revision 1.344 by sf-exg, Tue Jun 16 11:58:26 2015 UTC

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
1207} 1211}
1208 1212
1209void 1213void
1210rxvt_term::set_icon (const char *file) 1214rxvt_term::set_icon (const char *file)
1211{ 1215{
1212#if HAVE_PIXBUF 1216#if HAVE_PIXBUF && ENABLE_EWMH
1213 GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (file, NULL); 1217 GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (file, NULL);
1214 if (!pixbuf) 1218 if (!pixbuf)
1215 { 1219 {
1216 rxvt_warn ("Loading image icon failed, continuing without.\n"); 1220 rxvt_warn ("Loading image icon failed, continuing without.\n");
1217 return; 1221 return;
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,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines