|
|
1.1 ! root 1: #include "copyright.h" ! 2: ! 3: /* $Header: XGetIFocus.c,v 11.8 87/09/11 08:04:11 toddb Exp $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1986 */ ! 5: ! 6: #define NEED_REPLIES ! 7: #include "Xlibint.h" ! 8: ! 9: XGetInputFocus(dpy, focus, revert_to) ! 10: register Display *dpy; ! 11: Window *focus; ! 12: int *revert_to; ! 13: { ! 14: xGetInputFocusReply rep; ! 15: register xReq *req; ! 16: LockDisplay(dpy); ! 17: GetEmptyReq(GetInputFocus, req); ! 18: (void) _XReply (dpy, (xReply *)&rep, 0, xTrue); ! 19: *focus = rep.focus; ! 20: *revert_to = rep.revertTo; ! 21: UnlockDisplay(dpy); ! 22: SyncHandle(); ! 23: } ! 24:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.