mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-03 21:48:03 +02:00
Clarify state parameter to XkbSetNamedDeviceIndicator
Checking a Bool to see if it's NULL does not work well in C. Also reported in https://bugs.freedesktop.org/show_bug.cgi?id=251 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
c6dadd4ceb
commit
b856d5d929
2 changed files with 12 additions and 7 deletions
|
|
@ -85,13 +85,16 @@ and returns True.
|
|||
|
||||
If
|
||||
.I change_state
|
||||
is True, and the optional parameter,
|
||||
.IR state ,
|
||||
is not NULL,
|
||||
is True,
|
||||
.I XkbSetNamedDeviceIndicator
|
||||
tells the server to change the state of the named indicator to the value
|
||||
specified by
|
||||
.IR state .
|
||||
If
|
||||
.I change_state
|
||||
is False, then
|
||||
.I state
|
||||
is not used.
|
||||
|
||||
If an indicator with the name specified by
|
||||
.I name
|
||||
|
|
|
|||
|
|
@ -1696,14 +1696,16 @@ If
|
|||
<parameter>change_state</parameter>
|
||||
is
|
||||
<symbol>True</symbol>,
|
||||
and the optional parameter,
|
||||
<parameter>state</parameter>,
|
||||
is not
|
||||
<symbol>NULL</symbol>,
|
||||
<function>XkbSetNamedDeviceIndicator</function>
|
||||
tells the server to change the state of the named indicator to the value
|
||||
specified by
|
||||
<parameter>state</parameter>.
|
||||
If
|
||||
<parameter>change_state</parameter>
|
||||
is
|
||||
<symbol>False</symbol>,
|
||||
<parameter>state</parameter>
|
||||
is not used.
|
||||
</para>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue