105b261ecSmrg/*
205b261ecSmrg
305b261ecSmrgCopyright 1993 by Davor Matic
405b261ecSmrg
505b261ecSmrgPermission to use, copy, modify, distribute, and sell this software
605b261ecSmrgand its documentation for any purpose is hereby granted without fee,
705b261ecSmrgprovided that the above copyright notice appear in all copies and that
805b261ecSmrgboth that copyright notice and this permission notice appear in
905b261ecSmrgsupporting documentation.  Davor Matic makes no representations about
1005b261ecSmrgthe suitability of this software for any purpose.  It is provided "as
1105b261ecSmrgis" without express or implied warranty.
1205b261ecSmrg
1305b261ecSmrg*/
1405b261ecSmrg
1505b261ecSmrg#ifdef HAVE_XNEST_CONFIG_H
1605b261ecSmrg#include <xnest-config.h>
1705b261ecSmrg#endif
1805b261ecSmrg
1905b261ecSmrg#include <X11/X.h>
2005b261ecSmrg#include <X11/Xproto.h>
2105b261ecSmrg#include "screenint.h"
2205b261ecSmrg#include "input.h"
2305b261ecSmrg#include "misc.h"
2405b261ecSmrg#include "scrnintstr.h"
2505b261ecSmrg#include "windowstr.h"
2605b261ecSmrg#include "servermd.h"
2705b261ecSmrg
2805b261ecSmrg#include "Xnest.h"
2905b261ecSmrg
3005b261ecSmrg#include "Display.h"
3105b261ecSmrg#include "Events.h"
3205b261ecSmrg#include "Handlers.h"
3305b261ecSmrg
3405b261ecSmrgvoid
35ed6184dfSmrgxnestBlockHandler(void *blockData, void *timeout)
3605b261ecSmrg{
3735c4bbdfSmrg    xnestCollectExposures();
3835c4bbdfSmrg    XFlush(xnestDisplay);
3905b261ecSmrg}
4005b261ecSmrg
4105b261ecSmrgvoid
421b5d61b8SmrgxnestWakeupHandler(void *blockData, int result)
4305b261ecSmrg{
4435c4bbdfSmrg    xnestCollectEvents();
4505b261ecSmrg}
46