260 lines
3.8 KiB
HTML
260 lines
3.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of XISETFOCUS</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>XISETFOCUS</H1>
|
|
Section: (3)<BR>Updated: 06/19/2019<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
XISetFocus, XIGetFocus - set or get the device's focus.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<PRE>
|
|
#include <<A HREF="file:///usr/include/X11/extensions/XInput2.h">X11/extensions/XInput2.h</A>>
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
Status XISetFocus( Display *display,
|
|
int deviceid,
|
|
Window focus,
|
|
Time time);
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
Status XIGetFocus( Display *display,
|
|
Window *focus_return);
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
display
|
|
Specifies the connection to the X server.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
deviceid
|
|
Specifies the device whose focus is to be queried or
|
|
changed.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
focus
|
|
The new focus window.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
focus_return
|
|
Returns the current focus window.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
time
|
|
A valid timestamp or CurrentTime.
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="1"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
XISetFocus changes the focus of the specified device ans its
|
|
last-focus-change time. It has no effect if the specified time
|
|
is earlier than the current last-focus-change time or is later
|
|
than the current X server time. Otherwise, the
|
|
last-focus-change time is set to the specified time.
|
|
CurrentTime is replaced by the current X server time).
|
|
XISetFocus causes the X server to generate core, XI and XI2
|
|
focus events.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
If the focus window is None all keyboard events by this device
|
|
are discarded until a new focus window is set. Otherwise, if
|
|
focus is a window, it becomes the device's focus window. If a
|
|
generated device event would normally be reported to this
|
|
window or one of its inferiors, the event is reported as usual.
|
|
Otherwise, the event is reported relative to the focus window.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
The specified focus window must be viewable at the time
|
|
XISetFocus is called, or a BadMatch error results. If the focus
|
|
window later becomes not viewable, the focus reverts to the
|
|
parent (or the closest viewable ancestor. When the focus
|
|
reverts, the X server generates core, XI and XI2 focus events
|
|
but the last-focus-change time is not affected.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
Attempting to set the focus on a master pointer device or an
|
|
attached slave device will result in a BadDevice error.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
XISetFocus can generate BadDevice, BadMatch, BadValue, and
|
|
BadWindow errors.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
BadValue
|
|
A value is outside of the permitted range.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
BadDevice
|
|
An invalid device was specified. The device does not
|
|
exist or is not a appropriate for the type of change.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
BadMatch
|
|
The window is not viewable.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
BadWindow
|
|
A value for a Window argument does not name a defined
|
|
Window.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">DIAGNOSTICS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:01 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|