3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "XISETFOCUS" "libmansuffix" "09/07/2010" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 XISetFocus, XIGetFocus \- set or get the device\'s focus\&.
26 #include <X11/extensions/XInput2\&.h>
30 Status XISetFocus( Display *display,
37 Status XIGetFocus( Display *display,
38 Window *focus_return);
43 Specifies the connection to the X server\&.
48 Specifies the device whose focus is to be queried or
54 The new focus window\&.
59 Returns the current focus window\&.
64 A valid timestamp or CurrentTime\&.
72 XISetFocus changes the focus of the specified device ans its
73 last\-focus\-change time\&. It has no effect if the specified time
74 is earlier than the current last\-focus\-change time or is later
75 than the current X server time\&. Otherwise, the
76 last\-focus\-change time is set to the specified time\&.
77 CurrentTime is replaced by the current X server time)\&.
78 XISetFocus causes the X server to generate core, XI and XI2
89 If the focus window is None all keyboard events by this device
90 are discarded until a new focus window is set\&. Otherwise, if
91 focus is a window, it becomes the device\'s focus window\&. If a
92 generated device event would normally be reported to this
93 window or one of its inferiors, the event is reported as usual\&.
94 Otherwise, the event is reported relative to the focus window\&.
104 The specified focus window must be viewable at the time
105 XISetFocus is called, or a BadMatch error results\&. If the focus
106 window later becomes not viewable, the focus reverts to the
107 parent (or the closest viewable ancestor\&. When the focus
108 reverts, the X server generates core, XI and XI2 focus events
109 but the last\-focus\-change time is not affected\&.
119 Attempting to set the focus on a master pointer device or an
120 attached slave device will result in a BadDevice error\&.
130 XISetFocus can generate BadDevice, BadMatch, BadValue, and
143 A value is outside of the permitted range\&.
154 An invalid device was specified\&. The device does not
155 exist or is not a appropriate for the type of change\&.
166 The window is not viewable\&.
177 A value for a Window argument does not name a defined