Scroll to navigation

XSetInputFocus(3X11) XLIB FUNCTIONS XSetInputFocus(3X11)

̾??

XSetInputFocus, XGetInputFocus - ???ϥե????????????椹??

????

XSetInputFocus(display, focus, revert_to, time)
Display *display;
Window focus;
int revert_to;
Time time;

XGetInputFocus(display, focus_return, revert_to_return)
Display *display;
Window *focus_return;
int *revert_to_return;

??????

X ?????Фؤ???³?????ꤹ?롣
???????ɥ??? PointerRoot, None ?Τ????줫?????ꤹ?롣
?ե??????????????ɥ??? PointerRoot, None ?Τ????줫???֤????롣
???????ɥ???ɽ????ǽ?ˤʤä??Ȥ??????ϥե??????????ɤ??????뤫?????ꤹ?롣 RevertToParent, RevertToPointerRoot, RevertToNone ?Τ????줫???????Ǥ??롣
???ߤΥե??????????? (RevertToParent, RevertToPointerRoot, RevertToNone ?Τ????줫)???֤????롣
?????????ꤹ?롣 ?????ॹ?????פ? CurrentTime ???????Ǥ??롣

????

?ؿ? XSetInputFocus ?????ϥե????????Ⱥǽ??ե????????ѹ?????(last-focus-change time)???ѹ? ???롣 ???ꤷ?????郎?ǽ??ե????????ѹ??????????ᤤ?????? X ?????Фθ??߻????? ?????٤??????ˤϡ????δؿ??ϲ????Ԥ??ʤ??? ?????Ǥʤ??????ˤϡ??ǽ??ե????????ѹ??????ϻ??ꤷ???????????ꤵ???? (CurrentTime ?? X ?????Фθ??߻??????֤???????????)?? XSetInputFocus ?ˤ??? X ?????Ф? FocusIn ???٥??Ȥ? FocusOut ???٥??Ȥ????????롣

?????? focus ???ͤˤ????ؿ???ư???ϰʲ??Τ褦?ˤʤ롣

  • focus ?? None ?ξ??硢???????ե??????????????ɥ??????ꤵ?????ޤ????Ƥ? ?????ܡ??ɥ??٥??Ȥ??˴????졢?????? revert_to ??̵?뤵???롣
  • focus ?????????ɥ??ξ??硢???Υ??????ɥ????????ܡ??ɤΥե??????????????ɥ??Ȥʤ롣 ???????줿?????ܡ??ɥ??٥??Ȥ????Υ??????ɥ??䤽?β??̥??????ɥ???1?? ?????̤????𤵤줿???硢???Υ??٥??Ȥ??̾??̤????𤵤??롣 ?????Ǥʤ????硢???٥??Ȥϥե??????????????ɥ??˴ؤ??????ΤȤ??????𤵤??롣
  • focus ?? PointerRoot ?ξ????ϥե??????????????ɥ???ưŪ?˷??ꤵ?졢?ƥ????ܡ??ɥ??٥??Ȥ??? ?????Ȥ??˥ݥ??󥿤????ä?Ǥ?դΥ????꡼???Υ롼?ȥ??????ɥ??Ȥʤ롣 ???ξ??硢?????? revert_to ??̵?뤵???롣

???ꤷ???ե??????????????ɥ??ϡ? XSetInputFocus ???ƤӽФ??줿?Ȥ???ɽ????ǽ?Ǥʤ????Фʤ??ʤ??? ɽ????ǽ?Ǥʤ????дؿ??? BadMatch ???顼?Ȥʤ롣 ?ե??????????????ɥ???????ɽ????ǽ?Ǥʤ??ʤä????硢 X ?????Фϰ????? revert_to ??ɾ???????ʲ??Τ褦?ˤ??ƿ??????ե??????????? ???ɥ??????ꤹ?롣

  • revert_to ?? RevertToParent ?ʤ??С??ե????????Ͽƥ??????ɥ?(???뤤?ϺǤ??ᤤɽ????ǽ?????襦???? ?ɥ?)?????ꡢrevert_to ?ο??????ͤ? RevertToNone ?Ȥʤ롣
  • revert_to ?? RevertToPointerRoot ?ξ????ˤϥե????????? PointerRoot ?????ꡢ RevertToNone ?ξ????ˤ? None ?????롣 ?ե????????????ä??Ȥ??ˤ? X ?????Ф? FocusIn ???٥??Ȥ? FocusOut ?????????뤬???ǽ??ե????????ѹ??????ϱƶ????????ʤ???

XSetInputFocus ?ϥ??顼 BadMatch, BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XGetInputFocus ?ϥե??????????????ɥ??ȸ??ߤΥե??????????֤??֤???

?֤???

???ꤵ?줿???ͤ????˥ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????? ???Ф??????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ????? ?Ƥ??ϰϤ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤? ?????Ȥ????롣
?????? Window ???ͤ????????????Ƥ??륦?????ɥ????ؤ??Ƥ??ʤ???

??Ϣ????

XWarpPointer(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11