On Sat, May 12, 2007 at 06:36:05AM +0000, Debian Bug Tracking System wrote:
here's a diff that solves the problem for me,
unfortunatley I can't explain why it works...
now that I am somewhat familiar with the xface source I may look into
some other weirdness I have witnessed.
--
Bye.
Jasen
*** slrnface.c 2007-05-12 22:53:35.000000000 +1200
--- /root/slrnface-2.1.1/slrnface.c 2002-08-25 09:33:52.000000000 +1200
***************
*** 508,522 ****
if (XGetWindowAttributes (d, winid, &winattrs) == Success)
cmap = winattrs.colormap;
else
cmap = DefaultColormap (d, DefaultScreen (d));
- /* allocate the move cursor -- moving this call to later causes segfaults - dunno why */
- cursor_move = XCreateFontCursor (d, XC_fleur);
-
/* X Resources stuff. Suggested by a user's demented mind. */
winchild = get_class_hint (winid, &terminal);
if (winchild)
{
/*
--- 508,519 ----
***************
*** 634,645 ****
--- 631,643 ----
gcmask = GCForeground | GCBackground | GCGraphicsExposures;
gc = XCreateGC(d, win, gcmask, &gcvals);
/* And the last piece of crap. */
+ cursor_move = XCreateFontCursor (d, XC_fleur);
XGrabButton (d, Button1, AnyModifier, win, False,
ButtonPressMask | ButtonReleaseMask | Button1MotionMask,
GrabModeSync, GrabModeAsync, win, cursor_move);
XSelectInput (d, win, ExposureMask | StructureNotifyMask);
/* We are done. Amazing. */