diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2017-03-16 00:05:49 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2017-03-24 15:19:27 -0700 |
commit | b856d5d929047d1ea169814d56e43784ea404c83 (patch) | |
tree | 78f613cf3376c55fc7abe66e09a65d374ae6985a | |
parent | c6dadd4cebd994aafb37a58b3adbaa82507c2d18 (diff) |
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>
-rw-r--r-- | man/xkb/XkbSetNamedIndicator.man | 9 | ||||
-rw-r--r-- | specs/XKB/ch08.xml | 10 |
2 files changed, 12 insertions, 7 deletions
diff --git a/man/xkb/XkbSetNamedIndicator.man b/man/xkb/XkbSetNamedIndicator.man index 52716b0f..81df50fc 100644 --- a/man/xkb/XkbSetNamedIndicator.man +++ b/man/xkb/XkbSetNamedIndicator.man @@ -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 diff --git a/specs/XKB/ch08.xml b/specs/XKB/ch08.xml index 4e2872eb..aa308c0b 100644 --- a/specs/XKB/ch08.xml +++ b/specs/XKB/ch08.xml @@ -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> |