I am working on an application that opens a new window and draws some
image in this window using hoops. If the screensaver is on, it doesn't
opens any window and keeps waiting until the screensaver is closed.
I tried to debug it and found it is waiting in _XWaitForReadable
function

Is there a way, I can change this behavior? I mean it should be
able to open the window even if screensaver is on.

here is the partial call stack.

(gdb) where
#0 0x405efa31 in select () from /lib/i686/libc.so.6
#1 0x0858ef20 in ?? ()
#2 0x0000000e in ?? ()
#3 0x00000000 in ?? ()
#4 0x00000000 in ?? ()
#5 0x08310066 in _XWaitForReadable ()
#6 0x08310436 in _XRead ()
#7 0x083117d4 in _XReadEvents ()
#8 0x0830dec5 in XWindowEvent ()
#9 0x403a7045 in create_x11_test_window ()
from /nfs/awnlnx/home/awn/dev/lib/lnx86_rh8/libhoops920.so
#10 0x403a8d7e in get_physical_info ()
from /nfs/awnlnx/home/awn/dev/lib/lnx86_rh8/libhoops920.so
#11 0x40212923 in HD_Get_Physical_Info ()
from /nfs/awnlnx/home/awn/dev/lib/lnx86_rh8/libhoops920.so
#12 0x40362525 in HD_Standard_Driver ()
from /nfs/awnlnx/home/awn/dev/lib/lnx86_rh8/libhoops920.so
#13 0x403882a6 in HI_Update_Driver_Data ()
from /nfs/awnlnx/home/awn/dev/lib/lnx86_rh8/libhoops920.so
#14 0x402ddf3b in HFC_Show_Device_Info ()
from /nfs/awnlnx/home/awn/dev/lib/lnx86_rh8/libhoops920.so
#15 0x402de076 in HC_Show_Device_Info ()
from /nfs/awnlnx/home/awn/dev/lib/lnx86_rh8/libhoops920.so