Mercurial > hg > xemacs-beta
comparison src/device-x.c @ 359:8e84bee8ddd0 r21-1-9
Import from CVS: tag r21-1-9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:57:55 +0200 |
parents | 54f7aa390f4f |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
358:fed6e0f6a03a | 359:8e84bee8ddd0 |
---|---|
1602 DEFUN ("x-grab-keyboard", Fx_grab_keyboard, 0, 1, 0, /* | 1602 DEFUN ("x-grab-keyboard", Fx_grab_keyboard, 0, 1, 0, /* |
1603 Grab the keyboard on the given device (defaulting to the selected one). | 1603 Grab the keyboard on the given device (defaulting to the selected one). |
1604 So long as the keyboard is grabbed, all keyboard events will be delivered | 1604 So long as the keyboard is grabbed, all keyboard events will be delivered |
1605 to emacs -- it is not possible for other X clients to eavesdrop on them. | 1605 to emacs -- it is not possible for other X clients to eavesdrop on them. |
1606 Ungrab the keyboard with `x-ungrab-keyboard' (use an unwind-protect). | 1606 Ungrab the keyboard with `x-ungrab-keyboard' (use an unwind-protect). |
1607 Returns t if the grab was successful; nil otherwise. | 1607 Returns t if the grab is successful, nil otherwise. |
1608 */ | 1608 */ |
1609 (device)) | 1609 (device)) |
1610 { | 1610 { |
1611 struct device *d = decode_x_device (device); | 1611 struct device *d = decode_x_device (device); |
1612 Window w = XtWindow (FRAME_X_TEXT_WIDGET (device_selected_frame (d))); | 1612 Window w = XtWindow (FRAME_X_TEXT_WIDGET (device_selected_frame (d))); |