2 .\" Copyright 1999 Oracle and/or its affiliates. All rights reserved.
4 .\" Permission is hereby granted, free of charge, to any person obtaining a
5 .\" copy of this software and associated documentation files (the "Software"),
6 .\" to deal in the Software without restriction, including without limitation
7 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 .\" and/or sell copies of the Software, and to permit persons to whom the
9 .\" Software is furnished to do so, subject to the following conditions:
11 .\" The above copyright notice and this permission notice (including the next
12 .\" paragraph) shall be included in all copies or substantial portions of the
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 .\" DEALINGS IN THE SOFTWARE.
23 .TH XkbSetDebuggingFlags __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
25 XkbSetDebuggingFlags \- Change the values of any of the debug controls
28 .B Bool XkbSetDebuggingFlags
29 .BI "(\^Display *" "display" "\^,"
30 .BI "unsigned int " "mask" "\^,"
31 .BI "unsigned int " "flags" "\^,"
32 .BI "char *" "msg" "\^,"
33 .BI "unsigned int " "ctrls_mask" "\^,"
34 .BI "unsigned int " "ctrls" "\^,"
35 .BI "unsigned int *" "ret_flags" "\^,"
36 .BI "unsigned int *" "ret_ctrls" "\^);"
42 connection to X server
45 mask selecting debug output flags to change
48 values for debug output flags selected by mask
51 message to print right now
54 mask selecting debug controls to change
57 values for debug controls selected by ctrls_mask
60 resulting state of all debug output flags
63 resulting state of all debug controls
66 The debugging aids are intended for use primarily by Xkb implementors and are
67 optional in any implementation.
69 There are two bitmasks that may be used to control debugging. One bitmask
70 controls the output of debugging information, and the other controls behavior.
71 Both bitmasks are initially all zeros.
73 To change the values of any of the debug controls, use
74 .I XkbSetDebuggingFlags.
76 .I XkbSetDebuggingFlags
77 modifies the debug output flags as specified by
81 modifies the debug controls flags as specified by
91 with the resulting debug output and debug controls flags.
93 When bits are set in the debug output masks,
97 Xkb prints debug information corresponding to each bit at appropriate points
98 during its processing. The device to which the output is written is
99 implementation-dependent, but is normally the same device to which X server
100 error messages are directed; thus the bits that can be set in
104 is implementation-specific. To turn on a debug output selection, set the bit for
107 parameter and set the corresponding bit in the
109 parameter. To turn off event selection for an event, set the bit for the output
112 parameter and do not set the corresponding bit in the
116 When bits are set in the debug controls masks,
120 Xkb modifies its behavior according to each controls bit.
124 are related in the same way that
128 are. The valid controls bits are defined in Table 1.
133 Table 1 Debug Control Masks
135 Debug Control Mask Value Meaning
137 XkbDF_DisableLocks (1 << 0) Disable actions that lock modifiers
140 .I XkbSetDebuggingFlags
141 returns True if successful and False otherwise. The only protocol error it may
142 generate is BadAlloc, if for some reason it is unable to allocate storage.
144 .I XkbSetDebuggingFlags
145 is intended for developer use and may be disabled in production X servers. If it
147 .I XkbSetDebuggingFlags
148 has no effect and does not generate any protocol errors.
152 is written immediately. The device to which it is written is implementation
153 dependent but is normally the same device where X server error messages are
159 .I XkbSetDebuggingFlags
160 function returns True when successful.
164 .I XkbSetDebuggingFlags
165 function returns False when not successful.
169 Unable to allocate storage