Scroll to navigation

XGrabKeyboard(3X11) XLIB FUNCTIONS XGrabKeyboard(3X11)

̾??

XGrabKeyboard, XUngrabKeyboard - ?????ܡ??ɤ򥰥??֤???

????

int XGrabKeyboard(display, grab_window, owner_events, pointer_mode, keyboard_mode, time)
Display *display;
Window grab_window;
Bool owner_events;
int pointer_mode, keyboard_mode;
Time time;

XUngrabKeyboard(display, time)
Display *display;
Time time;

??????

X ?????Фؤ???³?????ꤹ?롣
?????֥??????ɥ??????ꤹ?롣
?????ܡ??ɥ??٥??Ȥθ??????????ꤹ?롣 GrabModeSync ???뤤?? GrabModeAsync ???????Ǥ??롣
?????ܡ??ɥ??٥??Ȥ??̾??̤????𤹤??Τ??ɤ????򼨤??????ͤ????ꤹ?롣
?ݥ??󥿥??٥??Ȥθ??????????ꤹ?롣 GrabModeSync ?ޤ??? GrabModeAsync ?????ꤹ?롣
?????????ꤹ?롣 ?????ॹ?????פ? CurrentTime ???Ϥ??롣

????

?ؿ? XGrabKeyboard ?ϥ????ܡ??ɤ??????򥢥??ƥ??֤˥????֤??? FocusIn ???٥??Ȥ? FocusOut ???٥??Ȥ????????롣 ?ʹߤΥ??????٥??Ȥϥ????֤??ԤäƤ??륯?饤?????ȤˤΤߤ????𤵤??롣 XGrabKeyboard ?Ϥ??Υ??饤?????Ȥˤ??????ƤΥ????ƥ??֤ʥ????֤????񤭤??롣 owner_events ?? False ?ʤ??С????????줿???ƤΥ??????٥??Ȥ? grab_window ?ˤĤ??????𤵤??롣 owner_events ?? True ?ξ????ϡ????????줿???????٥??Ȥ??̾??Ϥ??Υ??饤?????Ȥ????𤵤????? ???ʤ??С????Υ??٥??Ȥ??̾??̤??????𤵤??롣?????Ǥʤ??ʤ??С????Υ? ?٥??Ȥ? grab_window ?ˤĤ??????𤵤??롣 KeyPress ???٥??Ȥ? KeyRelease ???٥??ȤΤ??????⡢???饤?????Ȥˤ??륤?٥????????Ȥϴط??ʤ????????? ?????롣

?????? keyboard_mode ?? GrabModeAsync ?ʤ??С??????ܡ??ɥ??٥??Ƚ??????̾??̤?³???????롣 ?????ܡ??ɤ????Υ??饤?????Ȥˤ??äƸ??????뤵???Ƥ????ʤ??С??????ܡ? ?ɥ??٥??Ȥν????ϺƳ??????롣 ?????? keyboard_mode ?? GrabModeSync ?ʤ??С??????ܡ??ɤξ???(???饤?????ȥ??ץꥱ???????󤬸???)?????뤵?? ?Ƥ????ȹͤ??????롣???ξ????ϡ??????֤??ԤäƤ??륯?饤?????Ȥ????????Ԥ? XAllowEvents ?θƤӽФ????Ԥ??????????ܡ??ɤΥ????֤????????????ޤǤϡ?X ?????Фϰ? ?ߤΥ????ܡ??ɥ??٥??Ȥ????????ʤ??? ?????ܡ??ɤ????뤵???Ƥ????֤⥭???ܡ??ɤμºݤ??Ѳ??ϼ??????ʤ??????? ????ñ?˥????ФΥ??塼???????????Ƥ??ꡢ???ǽ????????롣

pointer_mode ?? GrabModeAsync ?ʤ??С??ݥ??󥿥??٥??Ȥν????ϥ????֤Υ????ƥ??ֲ??αƶ??ϼ????ʤ??? pointer_mode ?? GrabModeSync ?ʤ??С??ݥ??󥿤ξ???(???饤?????ȥ??ץꥱ???????󤬸???)?????뤵???? ?????ȹͤ??????롣???ξ????ϡ??????֤??ԤäƤ??륯?饤?????Ȥ? XAllowEvents ???ƤӽФ??Ʋ??????Ԥ??????????ܡ??ɤΥ????֤????????????ޤǤϡ?X ?????ФϰʹߤΥݥ??󥿥??٥??Ȥ????????ʤ??? ?ݥ??󥿤????뤵???Ƥ????֤??ݥ??󥿤μºݤ??Ѳ??ϼ??????ʤ??????????? ñ?˥????ФΥ??塼???????????Ƥ??ꡢ???ǽ????????롣

?????ܡ??ɤ?¾?Υ??饤?????Ȥˤ??äƥ????ƥ??֤˥????֤????Ƥ??????硢 XGrabKeyboard ?ϼ??Ԥ??? AlreadyGrabbed ???֤??? grab_window ??ɽ????ǽ?Ǥʤ????硢???δؿ??ϼ??Ԥ??? GrabNotViewable ???֤??? ?????ܡ??ɤ?¾?Υ??饤?????ȤΥ????ƥ??֤ʥ????֤ˤ??ä????뤵???Ƥ??? ???硢?ؿ??ϼ??Ԥ??? GrabFrozen ???֤??? ???ꤷ?????郎?ǽ??????ܡ??ɥ????ֻ??????????ᤤ?????? X ?????Фθ??? ???????????٤??????ˤϡ??ؿ??ϼ??Ԥ??? GrabInvalidTime ???֤??? ?????Ǥʤ??????ϡ??ǽ??????ܡ??ɥ????ֻ????ˤϻ??ꤷ?????? (CurrentTime ?? X ?????Фθ??߻??????֤???????????)?????åȤ????롣

XGrabKeyboard ?ϥ??顼 BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XUngrabKeyboard ?ϡ????Υ??饤?????Ȥ? XGrabKeyboard ?? XGrabKey ?ˤ??äƥ????ƥ??֤ʥ????֤??ԤäƤ????ʤ??С??????ܡ??ɤȥ??塼?????? ?Ƥ??륤?٥??Ȥ????????롣

???ꤷ?????郎?ǽ??????ܡ??ɥ????ֻ????????ᤤ?????? X ?????Ф? ???߻??????????٤??????ˤϡ? XUngrabKeyboard ?ϥ????ܡ??ɤȥ??塼?????äƤ??륤?٥??Ȥβ??????Ԥ??ʤ??? ?ޤ??????δؿ??? FocusIn ???٥??Ȥ? FocusOut ?????????롣 ?????ƥ??֤ʥ????ܡ??ɥ????֤??Ф??륤?٥??ȥ??????ɥ???ɽ???Բ?ǽ?ˤ? ???ȡ?X ?????Фϼ?ưŪ?? UngrabKeyboard ?ꥯ?????Ȥ??Ԥ???

?֤???

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

??Ϣ????

XAllowEvents(3X11), XGrabButton(3X11), XGrabKey(3X11), XGrabPointer(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11