diff options
Diffstat (limited to 'xts5/XI/SendExtensionEvent.m')
-rw-r--r-- | xts5/XI/SendExtensionEvent.m | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/xts5/XI/SendExtensionEvent.m b/xts5/XI/SendExtensionEvent.m index 5311bebd..01f448dc 100644 --- a/xts5/XI/SendExtensionEvent.m +++ b/xts5/XI/SendExtensionEvent.m @@ -248,15 +248,15 @@ XEventClass dbpc; /* Grab server. */ XGrabServer(display); /* Enable synchronization. */ - (void) XSynchronize(display, True); + XSynchronize(display, True); /* Save initial pointer location. */ - (void) XQueryPointer(display, ptrwin, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); + XQueryPointer(display, ptrwin, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); /* Warp pointer to window. */ XWarpPointer(display, None, ptrwin, 0, 0, 0, 0, 0, 0); /* Get new pointer location. */ if (XQueryPointer(display, ptrwin, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer on wrong root."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } else @@ -272,7 +272,7 @@ XEventClass dbpc; /* Get current pointer location. */ if (XQueryPointer(display, ptrwin, &wtmp, &wtmp, &root_x, &root_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer moved."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } @@ -291,7 +291,7 @@ XEventClass dbpc; /* Warp pointer back to where it started. */ XWarpPointer(display, None, oldroot, 0, 0, 0, 0, sroot_x, sroot_y); /* Disable synchronization. */ - (void) XSynchronize(display, False); + XSynchronize(display, False); /* Ungrab server. */ XUngrabServer(display); /* Verify that XSendExtensionEvent returned non-zero. */ @@ -406,18 +406,18 @@ XEventClass dbpc; /* Grab server. */ XGrabServer(display); /* Enable synchronization. */ - (void) XSynchronize(display, True); + XSynchronize(display, True); /* Set input focus to parent window. */ XSetDeviceFocus(display, device, parent, RevertToPointerRoot, CurrentTime); /* Save initial pointer location. */ - (void) XQueryPointer(display, child, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); + XQueryPointer(display, child, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); /* Warp pointer to inferior of focus window. */ XWarpPointer(display, None, child, 0, 0, 0, 0, 0, 0); /* Get new pointer location. */ if (XQueryPointer(display, child, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer on wrong root."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } else @@ -434,7 +434,7 @@ XEventClass dbpc; /* Get current pointer location. */ if (XQueryPointer(display, child, &wtmp, &wtmp, &root_x, &root_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer moved."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } @@ -453,7 +453,7 @@ XEventClass dbpc; /* Warp pointer back to where it started. */ XWarpPointer(display, None, oldroot, 0, 0, 0, 0, sroot_x, sroot_y); /* Disable synchronization. */ - (void) XSynchronize(display, False); + XSynchronize(display, False); /* Ungrab server. */ XUngrabServer(display); /* Verify that XSendExtensionEvent returned non-zero. */ @@ -998,18 +998,18 @@ XEventClass noextensioneventclass, dbpc; /* Grab server. */ XGrabServer(display); /* Enable synchronization. */ - (void) XSynchronize(display, True); + XSynchronize(display, True); /* Set input focus to parent window. */ XSetDeviceFocus(display, Devs.Button, parent, RevertToPointerRoot, CurrentTime); /* Save initial pointer location. */ - (void) XQueryPointer(display, child, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); + XQueryPointer(display, child, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); /* Warp pointer to inferior of focus window. */ XWarpPointer(display, None, child, 0, 0, 0, 0, 0, 0); /* Get new pointer location. */ if (XQueryPointer(display, child, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer on wrong root."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } else @@ -1027,7 +1027,7 @@ XEventClass noextensioneventclass, dbpc; /* Get current pointer location. */ if (XQueryPointer(display, child, &wtmp, &wtmp, &root_x, &root_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer moved."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } @@ -1046,7 +1046,7 @@ XEventClass noextensioneventclass, dbpc; /* Warp pointer back to where it started. */ XWarpPointer(display, None, oldroot, 0, 0, 0, 0, sroot_x, sroot_y); /* Disable synchronization. */ - (void) XSynchronize(display, False); + XSynchronize(display, False); /* Ungrab server. */ XUngrabServer(display); /* Verify that XSendExtensionEvent returned non-zero. */ @@ -1154,18 +1154,18 @@ XEventClass noextensioneventclass, dbpc; /* Grab server. */ XGrabServer(display); /* Enable synchronization. */ - (void) XSynchronize(display, True); + XSynchronize(display, True); /* Set input focus to new focus window. */ XSetInputFocus(display, nfocus, RevertToPointerRoot, CurrentTime); /* Save initial pointer location. */ - (void) XQueryPointer(display, nfocus, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); + XQueryPointer(display, nfocus, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); /* Warp pointer away from inferior of focus window; to root. */ XWarpPointer(display, None, DRW(display), 0, 0, 0, 0, 0, 0); /* Get new pointer location. */ if (XQueryPointer(display, nfocus, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer on wrong root."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } else @@ -1185,7 +1185,7 @@ XEventClass noextensioneventclass, dbpc; /* Get current pointer location. */ if (XQueryPointer(display, nfocus, &wtmp, &wtmp, &root_x, &root_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer moved."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } @@ -1204,7 +1204,7 @@ XEventClass noextensioneventclass, dbpc; /* Warp pointer back to where it started. */ XWarpPointer(display, None, oldroot, 0, 0, 0, 0, sroot_x, sroot_y); /* Disable synchronization. */ - (void) XSynchronize(display, False); + XSynchronize(display, False); /* Ungrab server. */ XUngrabServer(display); /* Verify that XSendExtensionEvent returned non-zero. */ @@ -1229,18 +1229,18 @@ XEventClass noextensioneventclass, dbpc; /* Grab server. */ XGrabServer(display); /* Enable synchronization. */ - (void) XSynchronize(display, True); + XSynchronize(display, True); /* Set input focus to new focus window. */ XSetInputFocus(display, nfocus, RevertToPointerRoot, CurrentTime); /* Save initial pointer location. */ - (void) XQueryPointer(display, nfocus, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); + XQueryPointer(display, nfocus, &oldroot, &wtmp, &sroot_x, &sroot_y, &itmp, &itmp, &uitmp); /* Warp pointer away from inferior of focus window; to root. */ XWarpPointer(display, None, DRW(display), 0, 0, 0, 0, 0, 0); /* Get new pointer location. */ if (XQueryPointer(display, nfocus, &wtmp, &wtmp, &oroot_x, &oroot_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer on wrong root."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } else @@ -1251,7 +1251,7 @@ XEventClass noextensioneventclass, dbpc; /* Get current pointer location. */ if (XQueryPointer(display, nfocus, &wtmp, &wtmp, &root_x, &root_y, &itmp, &itmp, &uitmp) == False) { delete("Pointer moved."); - (void) XSynchronize(display, False); + XSynchronize(display, False); XUngrabServer(display); return; } @@ -1270,7 +1270,7 @@ XEventClass noextensioneventclass, dbpc; /* Warp pointer back to where it started. */ XWarpPointer(display, None, oldroot, 0, 0, 0, 0, sroot_x, sroot_y); /* Disable synchronization. */ - (void) XSynchronize(display, False); + XSynchronize(display, False); /* Ungrab server. */ XUngrabServer(display); /* Verify that XSendExtensionEvent returned non-zero. */ |