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:
Alan Coopersmith 2017-03-16 00:05:49 -07:00
parent c6dadd4ceb
commit b856d5d929
2 changed files with 12 additions and 7 deletions

View file

@ -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

View file

@ -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>