head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC7:1.1.1.6
	libX11-1-8-13:1.1.1.7
	netbsd-11-0-RC6:1.1.1.6
	netbsd-11-0-RC5:1.1.1.6
	netbsd-11-0-RC4:1.1.1.6
	netbsd-11-0-RC3:1.1.1.6
	netbsd-11-0-RC2:1.1.1.6
	netbsd-11-0-RC1:1.1.1.6
	netbsd-11:1.1.1.6.0.4
	netbsd-11-base:1.1.1.6
	libX11-1-8-12:1.1.1.6
	netbsd-10-1-RELEASE:1.1.1.6
	libX11-1-8-10:1.1.1.6
	libX11-1-8-9:1.1.1.6
	netbsd-8-3-RELEASE:1.1.1.4
	netbsd-9-4-RELEASE:1.1.1.4
	netbsd-10-0-RELEASE:1.1.1.6
	netbsd-10-0-RC6:1.1.1.6
	netbsd-10-0-RC5:1.1.1.6
	netbsd-10-0-RC4:1.1.1.6
	netbsd-10-0-RC3:1.1.1.6
	netbsd-10-0-RC2:1.1.1.6
	netbsd-10-0-RC1:1.1.1.6
	libX11-1-8-7:1.1.1.6
	libX11-1-8-6:1.1.1.6
	libX11-1-8-4:1.1.1.6
	libX11-1-8-3:1.1.1.6
	netbsd-10:1.1.1.6.0.2
	netbsd-10-base:1.1.1.6
	libX11-1-8-2:1.1.1.6
	netbsd-9-3-RELEASE:1.1.1.4
	libX11-1-8-1:1.1.1.5
	libX11-1-7-2:1.1.1.5
	libX11-1-7-1:1.1.1.5
	netbsd-9-2-RELEASE:1.1.1.4
	libX11-1-7-0:1.1.1.4
	netbsd-9-1-RELEASE:1.1.1.4
	libX11-1-6-12:1.1.1.4
	libX11-1-6-10:1.1.1.4
	netbsd-8-2-RELEASE:1.1.1.4
	libX11-1-6-9:1.1.1.4
	netbsd-9-0-RELEASE:1.1.1.4
	netbsd-9-0-RC2:1.1.1.4
	netbsd-9-0-RC1:1.1.1.4
	netbsd-9:1.1.1.4.0.4
	netbsd-9-base:1.1.1.4
	libX11-1-6-8:1.1.1.4
	netbsd-8-1-RELEASE:1.1.1.4
	netbsd-8-1-RC1:1.1.1.4
	libX11-1-6-7:1.1.1.4
	netbsd-7-2-RELEASE:1.1.1.3
	libX11-1-6-6:1.1.1.4
	netbsd-8-0-RELEASE:1.1.1.4
	netbsd-8-0-RC2:1.1.1.4
	netbsd-8-0-RC1:1.1.1.4
	netbsd-7-1-2-RELEASE:1.1.1.3
	netbsd-7-1-1-RELEASE:1.1.1.3
	netbsd-8:1.1.1.4.0.2
	netbsd-8-base:1.1.1.4
	netbsd-7-1:1.1.1.3.0.14
	netbsd-7-1-RELEASE:1.1.1.3
	libX11-1-6-5:1.1.1.4
	netbsd-7-1-RC2:1.1.1.3
	netbsd-7-1-RC1:1.1.1.3
	netbsd-7-0-2-RELEASE:1.1.1.3
	libX11-1-6-4:1.1.1.4
	netbsd-7-0-1-RELEASE:1.1.1.3
	netbsd-7-0:1.1.1.3.0.12
	netbsd-7-0-RELEASE:1.1.1.3
	netbsd-7-0-RC3:1.1.1.3
	netbsd-7-0-RC2:1.1.1.3
	libX11-1-6-3:1.1.1.4
	netbsd-7-0-RC1:1.1.1.3
	netbsd-5-2-3-RELEASE:1.1.1.1
	netbsd-5-1-5-RELEASE:1.1.1.1
	netbsd-6-0-6-RELEASE:1.1.1.3
	netbsd-6-1-5-RELEASE:1.1.1.3
	netbsd-7:1.1.1.3.0.10
	netbsd-7-base:1.1.1.3
	netbsd-6-1-4-RELEASE:1.1.1.3
	netbsd-6-0-5-RELEASE:1.1.1.3
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3
	libX11-1-6-2:1.1.1.3
	riastradh-drm2:1.1.1.3.0.8
	riastradh-drm2-base:1.1.1.3
	netbsd-6-1-3-RELEASE:1.1.1.3
	netbsd-6-0-4-RELEASE:1.1.1.3
	netbsd-5-2-2-RELEASE:1.1.1.1
	netbsd-5-1-4-RELEASE:1.1.1.1
	netbsd-6-1-2-RELEASE:1.1.1.3
	netbsd-6-0-3-RELEASE:1.1.1.3
	netbsd-5-2-1-RELEASE:1.1.1.1
	netbsd-5-1-3-RELEASE:1.1.1.1
	netbsd-6-1-1-RELEASE:1.1.1.3
	libX11-1-6-0:1.1.1.3
	libX11-1-5-99-902:1.1.1.3
	netbsd-6-1:1.1.1.3.0.6
	netbsd-6-0-2-RELEASE:1.1.1.3
	netbsd-6-1-RELEASE:1.1.1.3
	netbsd-6-1-RC4:1.1.1.3
	netbsd-6-1-RC3:1.1.1.3
	netbsd-6-1-RC2:1.1.1.3
	netbsd-6-1-RC1:1.1.1.3
	netbsd-5-2:1.1.1.1.0.8
	netbsd-6-0-1-RELEASE:1.1.1.3
	netbsd-5-2-RELEASE:1.1.1.1
	netbsd-5-2-RC1:1.1.1.1
	netbsd-6-0:1.1.1.3.0.4
	netbsd-6-0-RELEASE:1.1.1.3
	netbsd-6-0-RC2:1.1.1.3
	netbsd-6-0-RC1:1.1.1.3
	netbsd-6:1.1.1.3.0.2
	netbsd-6-base:1.1.1.3
	netbsd-5-1-2-RELEASE:1.1.1.1
	netbsd-5-1-1-RELEASE:1.1.1.1
	libX11-1-4-4:1.1.1.3
	libX11-1-4-3:1.1.1.3
	libX11-1-4-1:1.1.1.3
	libX11-1-3-6:1.1.1.2
	netbsd-5-1:1.1.1.1.0.6
	netbsd-5-1-RELEASE:1.1.1.1
	netbsd-5-1-RC4:1.1.1.1
	libX11-1-3-5:1.1.1.2
	libX11-1-3-4:1.1.1.2
	netbsd-5-1-RC3:1.1.1.1
	libX11-1-3-3:1.1.1.2
	netbsd-5-1-RC2:1.1.1.1
	netbsd-5-1-RC1:1.1.1.1
	netbsd-5-0-2-RELEASE:1.1.1.1
	netbsd-5-0-1-RELEASE:1.1.1.1
	libX11-1-2-2:1.1.1.1
	netbsd-5-0:1.1.1.1.0.4
	netbsd-5-0-RELEASE:1.1.1.1
	netbsd-5-0-RC4:1.1.1.1
	netbsd-5-0-RC3:1.1.1.1
	libX11-1-2:1.1.1.1
	netbsd-5-0-RC2:1.1.1.1
	netbsd-5-0-RC1:1.1.1.1
	netbsd-5:1.1.1.1.0.2
	netbsd-5-base:1.1.1.1
	libX11-1-1-4:1.1.1.1
	xorg:1.1.1;
locks; strict;
comment	@.\" @;


1.1
date	2008.07.30.02.43.37;	author mrg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2008.07.30.02.43.37;	author mrg;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2010.05.22.01.22.20;	author mrg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2011.02.23.07.55.43;	author mrg;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2015.07.19.08.08.37;	author mrg;	state Exp;
branches;
next	1.1.1.5;
commitid	u9SvqCeNOT4JZRty;

1.1.1.5
date	2021.05.19.08.19.11;	author mrg;	state Exp;
branches;
next	1.1.1.6;
commitid	JJYzU768zKyuyJTC;

1.1.1.6
date	2022.11.11.04.44.53;	author mrg;	state Exp;
branches;
next	1.1.1.7;
commitid	w9YHRKXKhJZNYe1E;

1.1.1.7
date	2026.07.11.23.01.34;	author mrg;	state Exp;
branches;
next	;
commitid	y4lCG7To2wFx2iNG;


desc
@@


1.1
log
@Initial revision
@
text
@'\" t
.\" Copyright (c) 1999 - Sun Microsystems, Inc.
.\" All rights reserved.
.\" 
.\" Permission is hereby granted, free of charge, to any person obtaining a
.\" copy of this software and associated documentation files (the
.\" "Software"), to deal in the Software without restriction, including
.\" without limitation the rights to use, copy, modify, merge, publish,
.\" distribute, and/or sell copies of the Software, and to permit persons
.\" to whom the Software is furnished to do so, provided that the above
.\" copyright notice(s) and this permission notice appear in all copies of
.\" the Software and that both the above copyright notice(s) and this
.\" permission notice appear in supporting documentation.
.\" 
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
.\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
.\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
.\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" 
.\" Except as contained in this notice, the name of a copyright holder
.\" shall not be used in advertising or otherwise to promote the sale, use
.\" or other dealings in this Software without prior written authorization
.\" of the copyright holder.
.\"
.TH XkbSetIgnoreLockMods __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
.SH NAME
XkbSetIgnoreLockMods \- Sets the modifiers that, if locked, are not to be 
reported in matching events to passive grabs
.SH SYNOPSIS
.B Bool XkbSetIgnoreLockMods
(
.I display,
.I device_spec,
.I affect_real,
.I real_values,
.I affect_virtual,
.I virtual_values
)
.br
      Display *\fIdisplay\fP\^;
.br
      unsigned int \fIdevice_spec\fP\^;
.br
      unsigned int \fIaffect_real\fP\^;
.br
      unsigned int \fIreal_values\fP\^;
.br
      unsigned int \fIaffect_virtual\fP\^;
.br
      unsigned int \fIvirtual_values\fP\^;
.if n .ti +5n
.if t .ti +.5i
.SH ARGUMENTS
.TP
.I \- display
connection to the X server
.TP
.I \- device_spec
device ID, or XkbUseCoreKbd
.TP
.I \- affect_real
mask of real modifiers affected by this call
.TP
.I \- real_values
values for affected real modifiers (1=>set, 0=>unset) 
.TP
.I \- affect_virtual
mask of virtual modifiers affected by this call 
.TP
.I \- virtual_values
values for affected virtual modifiers (1=>set, 0=>unset) 
.SH DESCRIPTION
.LP
The core protocol does not provide a way to exclude specific modifiers from grab 
calculations, with the result that locking modifiers sometimes have 
unanticipated side effects.

The IgnoreLockMods control specifies modifiers that should be excluded from grab 
calculations. These modifiers are also not reported in any core events except 
KeyPress and KeyRelease events that do not activate a passive grab and that do 
not occur while a grab is active.

Manipulate the IgnoreLockMods control via the 
.I ignore_lock 
field in the XkbControlsRec structure, then use 
.I XkbSetControls 
and 
.I XkbGetControls 
to query and change this control. Alternatively, use 
.I XkbSetIgnoreLockMods.

.I XkbSetIgnoreLockMods 
sends a request to the server to change the server's IgnoreLockMods control.
.I affect_real 
and 
.I real_values 
are masks of real modifier bits indicating which real modifiers are to be added 
and removed from the server's IgnoreLockMods control. Modifiers selected by both
.I affect_real 
and 
.I real_values 
are added to the server's IgnoreLockMods control; those selected by 
.I affect_real 
but not by 
.I real_values 
are removed from the server's IgnoreLockMods control. Valid values for 
.I affect_real 
and 
.I real_values 
consist of any combination of the eight core modifier bits: ShiftMask, LockMask, 
ControlMask, Mod1Mask - Mod5Mask. 
.I affect_virtual 
and 
.I virtual_values 
are masks of virtual modifier bits indicating which virtual modifiers are to be 
added and removed from the server's IgnoreLockMods control. Modifiers selected 
by both 
.I affect_virtual 
and 
.I virtual_values 
are added to the server's IgnoreLockMods control; those selected by 
.I affect_virtual 
but not by 
.I virtual_values 
are removed from the server's IgnoreLockMods control. See below for a discussion 
of virtual modifier masks to use in 
.I affect_virtual 
and 
.I virtual_values. XkbSetIgnoreLockMods 
does not wait for a reply from the server. It returns True if the request was 
sent, and False otherwise.

Virtual modifiers are named by converting their string name to an X Atom and 
storing the Atom in the 
.I names.vmods 
array in an XkbDescRec structure. The position of a name Atom in the 
.I names.vmods 
array defines the bit position used to represent the virtual modifier and also 
the index used when accessing virtual modifier information in arrays: the name 
in the i-th (0 relative) entry of 
.I names.vmods 
is the i-th virtual modifier, represented by the mask (1<<i). Throughout Xkb, 
various functions have a parameter that is a mask representing virtual modifier 
choices. In each case, the i-th bit (0 relative) of the mask represents the i-th 
virtual modifier.

To set the name of a virtual modifier, use 
.I XkbSetNames, 
using XkbVirtualModNamesMask in 
.I which 
and the name in the 
.I xkb 
argument; to retrieve indicator names, use 
.I XkbGetNames.
.SH STRUCTURES
.LP
The complete description of an Xkb keyboard is given by an XkbDescRec. The 
component structures in the XkbDescRec represent the major Xkb components.
.nf

typedef struct {
    struct _XDisplay * display;      /\(** connection to X server */
    unsigned short     flags;        /\(** private to Xkb, do not modify */
    unsigned short     device_spec;  /\(** device of interest */
    KeyCode            min_key_code; /\(** minimum keycode for device */
    KeyCode            max_key_code; /\(** maximum keycode for device */
    XkbControlsPtr     ctrls;        /\(** controls */
    XkbServerMapPtr    server;       /\(** server keymap */
    XkbClientMapPtr    map;          /\(** client keymap */
    XkbIndicatorPtr    indicators;   /\(** indicator map */
    XkbNamesPtr        names;        /\(** names for all components */
    XkbCompatMapPtr    compat;       /\(** compatibility map */
    XkbGeometryPtr     geom;         /\(** physical geometry of keyboard */
} XkbDescRec, *XkbDescPtr;

.fi
The display field points to an X display structure. The flags field is private 
to the library: modifying flags may yield unpredictable results. The device_spec 
field specifies the device identifier of the keyboard input device, or 
XkbUseCoreKeyboard, which specifies the core keyboard device. The min_key_code 
and max_key_code fields specify the least and greatest keycode that can be 
returned by the keyboard.
 
Each structure component has a corresponding mask bit that is used in function 
calls to indicate that the structure should be manipulated in some manner, such 
as allocating it or freeing it. These masks and their relationships to the 
fields in the XkbDescRec are shown in Table 1.

.TS
c s s
l l l
l l l.
Table 1 Mask Bits for XkbDescRec
_
Mask Bit	XkbDescRec Field	Value
_
XkbControlsMask	ctrls	(1L<<0)
XkbServerMapMask	server	(1L<<1)
XkbIClientMapMask	map	(1L<<2)
XkbIndicatorMapMask	indicators	(1L<<3)
XkbNamesMask	names	(1L<<4)
XkbCompatMapMask	compat	(1L<<5)
XkbGeometryMask	geom	(1L<<6)
XkbAllComponentsMask	All Fields	(0x7f)
.SH "SEE ALSO"
.BR XkbGetControls (__libmansuffix__),
.BR XkbGetNames (__libmansuffix__),
.BR XkbSetControls (__libmansuffix__),
.BR XkbSetNames (__libmansuffix__)
@


1.1.1.1
log
@initial import of libX11-1.1.4
@
text
@@


1.1.1.2
log
@initial import of libX11-1.3.3
@
text
@d2 3
a4 2
.\" Copyright 1999 Sun Microsystems, Inc.  All rights reserved.
.\"
d6 23
a28 17
.\" copy of this software and associated documentation files (the "Software"),
.\" to deal in the Software without restriction, including without limitation
.\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
.\" and/or sell copies of the Software, and to permit persons to whom the
.\" Software is furnished to do so, subject to the following conditions:
.\"
.\" The above copyright notice and this permission notice (including the next
.\" paragraph) shall be included in all copies or substantial portions of the
.\" Software.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
.\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
.\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
.\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
.\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
.\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
.\" DEALINGS IN THE SOFTWARE.
a34 1
.HP
d36 20
a55 6
.BI "(\^Display *" "display" "\^,"
.BI "unsigned int " "device_spec" "\^,"
.BI "unsigned int " "affect_real" "\^,"
.BI "unsigned int " "real_values" "\^,"
.BI "unsigned int " "affect_virtual" "\^,"
.BI "unsigned int " "virtual_values" "\^);"
@


1.1.1.3
log
@initial import of libX11-1.4.1:
- remove support for building without XCB
- many man page updates
- many random bug fixes
- several new nls aliases (need to enable these yet.)
@
text
@d2 1
a2 1
.\" Copyright 1999 Oracle and/or its affiliates. All rights reserved.
@


1.1.1.4
log
@initial import of libX11-1.6.3
@
text
@a189 1
.TE
@


1.1.1.5
log
@initial import of libX11-1.7.1
@
text
@d147 12
a158 12
    struct _XDisplay * display;      /\&* connection to X server */
    unsigned short     flags;        /\&* private to Xkb, do not modify */
    unsigned short     device_spec;  /\&* device of interest */
    KeyCode            min_key_code; /\&* minimum keycode for device */
    KeyCode            max_key_code; /\&* maximum keycode for device */
    XkbControlsPtr     ctrls;        /\&* controls */
    XkbServerMapPtr    server;       /\&* server keymap */
    XkbClientMapPtr    map;          /\&* client keymap */
    XkbIndicatorPtr    indicators;   /\&* indicator map */
    XkbNamesPtr        names;        /\&* names for all components */
    XkbCompatMapPtr    compat;       /\&* compatibility map */
    XkbGeometryPtr     geom;         /\&* physical geometry of keyboard */
@


1.1.1.6
log
@initial import of libX11-1.8.2
@
text
@d2 1
a2 1
.\" Copyright (c) 1999, Oracle and/or its affiliates.
d40 1
a40 1
.I display
d43 1
a43 1
.I device_spec
d46 1
a46 1
.I affect_real
d49 1
a49 1
.I real_values
d52 1
a52 1
.I affect_virtual
d55 1
a55 1
.I virtual_values
@


1.1.1.7
log
@initial import of libX11-1.8.13
@
text
@d25 1
a25 1
XkbSetIgnoreLockMods \- Sets the modifiers that, if locked, are not to be
d50 1
a50 1
values for affected real modifiers (1=>set, 0=>unset)
d53 1
a53 1
mask of virtual modifiers affected by this call
d56 1
a56 1
values for affected virtual modifiers (1=>set, 0=>unset)
d59 2
a60 2
The core protocol does not provide a way to exclude specific modifiers from grab
calculations, with the result that locking modifiers sometimes have
d63 3
a65 3
The IgnoreLockMods control specifies modifiers that should be excluded from grab
calculations. These modifiers are also not reported in any core events except
KeyPress and KeyRelease events that do not activate a passive grab and that do
d68 7
a74 7
Manipulate the IgnoreLockMods control via the
.I ignore_lock
field in the XkbControlsRec structure, then use
.I XkbSetControls
and
.I XkbGetControls
to query and change this control. Alternatively, use
d77 1
a77 1
.I XkbSetIgnoreLockMods
d79 4
a82 4
.I affect_real
and
.I real_values
are masks of real modifier bits indicating which real modifiers are to be added
d84 32
a115 32
.I affect_real
and
.I real_values
are added to the server's IgnoreLockMods control; those selected by
.I affect_real
but not by
.I real_values
are removed from the server's IgnoreLockMods control. Valid values for
.I affect_real
and
.I real_values
consist of any combination of the eight core modifier bits: ShiftMask, LockMask,
ControlMask, Mod1Mask - Mod5Mask.
.I affect_virtual
and
.I virtual_values
are masks of virtual modifier bits indicating which virtual modifiers are to be
added and removed from the server's IgnoreLockMods control. Modifiers selected
by both
.I affect_virtual
and
.I virtual_values
are added to the server's IgnoreLockMods control; those selected by
.I affect_virtual
but not by
.I virtual_values
are removed from the server's IgnoreLockMods control. See below for a discussion
of virtual modifier masks to use in
.I affect_virtual
and
.I virtual_values. XkbSetIgnoreLockMods
does not wait for a reply from the server. It returns True if the request was
d118 12
a129 12
Virtual modifiers are named by converting their string name to an X Atom and
storing the Atom in the
.I names.vmods
array in an XkbDescRec structure. The position of a name Atom in the
.I names.vmods
array defines the bit position used to represent the virtual modifier and also
the index used when accessing virtual modifier information in arrays: the name
in the i-th (0 relative) entry of
.I names.vmods
is the i-th virtual modifier, represented by the mask (1<<i). Throughout Xkb,
various functions have a parameter that is a mask representing virtual modifier
choices. In each case, the i-th bit (0 relative) of the mask represents the i-th
d132 7
a138 7
To set the name of a virtual modifier, use
.I XkbSetNames,
using XkbVirtualModNamesMask in
.I which
and the name in the
.I xkb
argument; to retrieve indicator names, use
d142 1
a142 1
The complete description of an Xkb keyboard is given by an XkbDescRec. The
d162 5
a166 5
The display field points to an X display structure. The flags field is private
to the library: modifying flags may yield unpredictable results. The device_spec
field specifies the device identifier of the keyboard input device, or
XkbUseCoreKeyboard, which specifies the core keyboard device. The min_key_code
and max_key_code fields specify the least and greatest keycode that can be
d168 4
a171 4

Each structure component has a corresponding mask bit that is used in function
calls to indicate that the structure should be manipulated in some manner, such
as allocating it or freeing it. These masks and their relationships to the
@


