.\" Title: bspwm
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 07/24/2017
+.\" Date: 07/25/2017
.\" Manual: Bspwm Manual
-.\" Source: Bspwm 0.9.3-10-g9ea4b01
+.\" Source: Bspwm 0.9.3-14-gefec936
.\" Language: English
.\"
-.TH "BSPWM" "1" "07/24/2017" "Bspwm 0\&.9\&.3\-10\-g9ea4b01" "Bspwm Manual"
+.TH "BSPWM" "1" "07/25/2017" "Bspwm 0\&.9\&.3\-14\-gefec936" "Bspwm Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.PP
\fB\-\-names\fR
.RS 4
-Print names instead of IDs\&.
+Print names instead of IDs\&. Can only be used with
+\fI\-M\fR
+and
+\fI\-D\fR\&.
.RE
.RE
.SS "Wm"
Constrain matches to the selected monitor, desktop or node. The descriptor can be omitted for '-M', '-D' and '-N'.
*--names*::
- Print names instead of IDs.
+ Print names instead of IDs. Can only be used with '-M' and '-D'.
Wm
~~
goto end;
}
+ if (!print_ids && (dom == DOMAIN_NODE | dom == DOMAIN_TREE)) {
+ fail(rsp, "query -%c: --names only applies to -M and -D.\n", dom == DOMAIN_NODE ? 'N' : 'T');
+ goto end;
+ }
+
if (dom == DOMAIN_NODE) {
if (query_node_ids(&ref, &trg, node_sel, rsp) < 1) {
fail(rsp, "");