| 1 | /* |
| 2 | |
| 3 | Copyright 1993 by Davor Matic |
| 4 | |
| 5 | Permission to use, copy, modify, distribute, and sell this software |
| 6 | and its documentation for any purpose is hereby granted without fee, |
| 7 | provided that the above copyright notice appear in all copies and that |
| 8 | both that copyright notice and this permission notice appear in |
| 9 | supporting documentation. Davor Matic makes no representations about |
| 10 | the suitability of this software for any purpose. It is provided "as |
| 11 | is" without express or implied warranty. |
| 12 | |
| 13 | */ |
| 14 | |
| 15 | #ifdef HAVE_XNEST_CONFIG_H |
| 16 | #include <xnest-config.h> |
| 17 | #endif |
| 18 | |
| 19 | #include <X11/X.h> |
| 20 | #include <X11/Xproto.h> |
| 21 | #include "screenint.h" |
| 22 | #include "input.h" |
| 23 | #include "misc.h" |
| 24 | #include "scrnintstr.h" |
| 25 | #include "windowstr.h" |
| 26 | #include "servermd.h" |
| 27 | |
| 28 | #include "Xnest.h" |
| 29 | |
| 30 | #include "Display.h" |
| 31 | #include "Events.h" |
| 32 | #include "Handlers.h" |
| 33 | |
| 34 | void |
| 35 | xnestBlockHandler(pointer blockData, OSTimePtr pTimeout, pointer pReadMask) |
| 36 | { |
| 37 | xnestCollectExposures(); |
| 38 | XFlush(xnestDisplay); |
| 39 | } |
| 40 | |
| 41 | void |
| 42 | xnestWakeupHandler(pointer blockData, int result, pointer pReadMask) |
| 43 | { |
| 44 | xnestCollectEvents(); |
| 45 | } |