3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "XISETFOCUS" "libmansuffix" "09/23/2011" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 XISetFocus, XIGetFocus \- set or get the device\*(Aqs focus\&.
35 #include <X11/extensions/XInput2\&.h>
39 Status XISetFocus( Display *display,
46 Status XIGetFocus( Display *display,
47 Window *focus_return);
52 Specifies the connection to the X server\&.
57 Specifies the device whose focus is to be queried or
63 The new focus window\&.
68 Returns the current focus window\&.
73 A valid timestamp or CurrentTime\&.
81 XISetFocus changes the focus of the specified device ans its
82 last\-focus\-change time\&. It has no effect if the specified time
83 is earlier than the current last\-focus\-change time or is later
84 than the current X server time\&. Otherwise, the
85 last\-focus\-change time is set to the specified time\&.
86 CurrentTime is replaced by the current X server time)\&.
87 XISetFocus causes the X server to generate core, XI and XI2
98 If the focus window is None all keyboard events by this device
99 are discarded until a new focus window is set\&. Otherwise, if
100 focus is a window, it becomes the device\*(Aqs focus window\&. If a
101 generated device event would normally be reported to this
102 window or one of its inferiors, the event is reported as usual\&.
103 Otherwise, the event is reported relative to the focus window\&.
113 The specified focus window must be viewable at the time
114 XISetFocus is called, or a BadMatch error results\&. If the focus
115 window later becomes not viewable, the focus reverts to the
116 parent (or the closest viewable ancestor\&. When the focus
117 reverts, the X server generates core, XI and XI2 focus events
118 but the last\-focus\-change time is not affected\&.
128 Attempting to set the focus on a master pointer device or an
129 attached slave device will result in a BadDevice error\&.
139 XISetFocus can generate BadDevice, BadMatch, BadValue, and
152 A value is outside of the permitted range\&.
163 An invalid device was specified\&. The device does not
164 exist or is not a appropriate for the type of change\&.
175 The window is not viewable\&.
186 A value for a Window argument does not name a defined