Re: trying to implement an event handler for XrandR events
- From: D M German <dmg uvic ca>
- To: sawfish-list gnome org
- Subject: Re: trying to implement an event handler for XrandR events
- Date: Sun, 13 Dec 2009 14:38:28 -0800
D> Hi Everybody,
D> I am trying to implement an event handler for XRandR events. I think I
D> have everything in place, but I am getting a strange error.
D> I have linked sawfish to the xrandr library:
I just discovered the problem.... the event_init is executed even in
batch mode, when no display is available (and the dpy variable is not
initialized).
--dmg
D> sawfish : $(OBJS) $(LIBOBJS)
D> $(rep_LIBTOOL) --mode=link --tag=CC $(CC) -export-dynamic $(LDFLAGS) \
D> -o sawfish $(OBJS) $(LIBOBJS) $(REP_LIBS) $(PANGO_LIBS) \
D> $(IMAGE_LIBS) $(X11_LIBS) $(EXTRA_X11_LIBS) $(LIBS) $(XRANDR_LIBS)
D> but when sawfish is executed, I get the following error.
D> dmg phosphorus:~/git.w/sawfish/src$ ./sawfish --batch
D> rep: received fatal signal: Segmentation fault
D> struct debug_buf common:
D> Backtrace in `fatal_signal_handler':
D> <(null)+-1223764632>
D> <XInitExtension+59>
D> <XextAddDisplay+76>
D> <(null)+-1222343312>
D> <XRRQueryExtension+17>
D> <events_init+44>
D> <main+1748>
D> <__libc_start_main+230>
D> Lisp backtrace:
D> Segmentation fault
D> ----------------------------------------------------------------------
D> The code is fairly simple (beginning of events_init):
D> #ifdef HAVE_X11_EXTENSIONS_XRANDR_H
int dummy;
int randr_event_base; /* Will give us the offset for the xrandr events */
D> #endif
has_randr = FALSE;
D> #ifdef HAVE_X11_EXTENSIONS_XRANDR_H
has_randr = XRRQueryExtension( dpy, &randr_event_base, &dummy );
D> #endif
D> ----------------------------------------------------------------------
D> ANy suggestions?
D> Thanks!
D> --dmg
D> --
D> --
D> Daniel M. German
D> http://turingmachine.org/
D> http://silvernegative.com/
D> dmg (at) uvic (dot) ca
D> replace (at) with @ and (dot) with .
--
--
Daniel M. German
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]