mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-17 00:22:59 +00:00
Improve I_SETSIG check for X I/O. (#58)
I_SETSIG is part of the STREAMS interface, which is only present on Solaris (among our supported platforms), so simplify this check. Other usages of I_SETSIG could be improved, but they need more investigation and perhaps removal.
This commit is contained in:
parent
7e2e1399e3
commit
bdb7e584b6
12
src/xinit.c
12
src/xinit.c
@ -99,13 +99,9 @@ void init_Xevent(DspInterface dsp)
|
||||
XSelectInput(dsp->display_id, dsp->SWGrav, GravMask);
|
||||
XSelectInput(dsp->display_id, dsp->NWGrav, GravMask);
|
||||
|
||||
#ifdef SYSVONLY
|
||||
#ifndef LINUX
|
||||
#ifndef MACOSX
|
||||
#if defined(OS5) && defined(I_SETSIG)
|
||||
ioctl(ConnectionNumber(dsp->display_id), I_SETSIG, S_INPUT); /* so we see X events fast */
|
||||
#endif
|
||||
#endif
|
||||
#endif /* SYSVONLY */
|
||||
} /*end init_Xevent */
|
||||
|
||||
/************************************************************************/
|
||||
@ -117,13 +113,9 @@ void init_Xevent(DspInterface dsp)
|
||||
/************************************************************************/
|
||||
void lisp_Xexit(DspInterface dsp)
|
||||
{
|
||||
#ifdef SYSVONLY
|
||||
#ifndef LINUX
|
||||
#ifndef MACOSX
|
||||
#if defined(OS5) && defined(I_SETSIG)
|
||||
ioctl(ConnectionNumber(dsp->display_id), I_SETSIG, 0); /* so no interrupts happen during */
|
||||
#endif
|
||||
#endif
|
||||
#endif /* SYSVONLY */
|
||||
|
||||
XDestroySubwindows(dsp->display_id, dsp->LispWindow);
|
||||
XDestroyWindow(dsp->display_id, dsp->LispWindow);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user