Hi Everybody,

I am trying to implement an event handler for XRandR events. I think I
have everything in place, but I am getting a strange error. 

I have linked sawfish to the xrandr library:

sawfish : $(OBJS) $(LIBOBJS)
        $(rep_LIBTOOL) --mode=link --tag=CC $(CC) -export-dynamic $(LDFLAGS) \
          -o sawfish $(OBJS) $(LIBOBJS) $(REP_LIBS) $(PANGO_LIBS) \
          $(IMAGE_LIBS) $(X11_LIBS) $(EXTRA_X11_LIBS) $(LIBS) $(XRANDR_LIBS)

but when sawfish is executed, I get the following error.


d...@phosphorus:~/git.w/sawfish/src$ ./sawfish --batch
rep: received fatal signal: Segmentation fault

struct debug_buf common:

Backtrace in `fatal_signal_handler':
        <(null)+-1223764632>
        <XInitExtension+59>
        <XextAddDisplay+76>
        <(null)+-1222343312>
        <XRRQueryExtension+17>
        <events_init+44>
        <main+1748>
        <__libc_start_main+230>

Lisp backtrace:

Segmentation fault
----------------------------------------------------------------------
The code is fairly simple (beginning of events_init):

#ifdef HAVE_X11_EXTENSIONS_XRANDR_H
    int dummy;
    int randr_event_base; /* Will give us the offset for the xrandr events */
#endif

    has_randr = FALSE;
#ifdef HAVE_X11_EXTENSIONS_XRANDR_H
    has_randr = XRRQueryExtension( dpy, &randr_event_base, &dummy );
#endif
----------------------------------------------------------------------

ANy suggestions?

Thanks!

--dmg



-- 
--
Daniel M. German                  
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

Reply via email to