summaryrefslogtreecommitdiff
path: root/Xi/chgptr.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-10-08 20:30:49 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-10-08 20:30:49 +0300
commitca474e0920dd29ebe7ccf346cddc526732ad01ba (patch)
tree6059b91712fd29e96d29a436025b66285f0525c8 /Xi/chgptr.c
parentc2fab469b66f2796c541e911202faa411d116b04 (diff)
Xi: move SendEventToAllWindows and FindInterestedChildren to exevents
Move SendEventToAllWindows and FindInterestedChildren from chgptr to exevents, so the DIX can more easily use it. Clean up two warnings (type mismatch, unused variable) in exevents.c.
Diffstat (limited to 'Xi/chgptr.c')
-rw-r--r--Xi/chgptr.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/Xi/chgptr.c b/Xi/chgptr.c
index f6f4b8bff..b79909216 100644
--- a/Xi/chgptr.c
+++ b/Xi/chgptr.c
@@ -180,47 +180,6 @@ DeleteFocusClassDeviceStruct(DeviceIntPtr dev)
/***********************************************************************
*
- * Send an event to interested clients in all windows on all screens.
- *
- */
-
-void
-SendEventToAllWindows(DeviceIntPtr dev, Mask mask, xEvent * ev, int count)
-{
- int i;
- WindowPtr pWin, p1;
-
- for (i = 0; i < screenInfo.numScreens; i++) {
- pWin = WindowTable[i];
- (void)DeliverEventsToWindow(pWin, ev, count, mask, NullGrab, dev->id);
- p1 = pWin->firstChild;
- FindInterestedChildren(dev, p1, mask, ev, count);
- }
-}
-
-/***********************************************************************
- *
- * Walk through the window tree, finding all clients that want to know
- * about the ChangeDeviceNotify Event.
- *
- */
-
-void
-FindInterestedChildren(DeviceIntPtr dev, WindowPtr p1, Mask mask,
- xEvent * ev, int count)
-{
- WindowPtr p2;
-
- while (p1) {
- p2 = p1->firstChild;
- (void)DeliverEventsToWindow(p1, ev, count, mask, NullGrab, dev->id);
- FindInterestedChildren(dev, p2, mask, ev, count);
- p1 = p1->nextSib;
- }
-}
-
-/***********************************************************************
- *
* This procedure writes the reply for the XChangePointerDevice
* function, if the client and server have a different byte ordering.
*