~leon_plickat/lswt

edeeb44c9ede7481c4d957852faa35d99bfbb4bf — Leon Henrik Plickat 4 months ago 404061d
Revert "Expose toplevel object-id in machine readable output formats"

This reverts commit 1637f13e2f81e469a08e19a2214f86add07223c4.

a) I reconsidered my stance on this and am no longer willing to support such
   hacks.
b) The commit did not do what I intended it to do anyway.
2 files changed, 1 insertions(+), 9 deletions(-)

M lswt.1
M lswt.c
M lswt.1 => lswt.1 +1 -6
@@ 45,11 45,6 @@ The \fBstate\fR is a four wide character field, corresponding to the four
possible toplevel states: maximized, minimized, activated and fullscreen.
If one of these states is true for a toplevel, the respective character in the
field is set to the first letter of the state name, otherwise it is \-.
.P
The machine readable formats additionally expose the object id of the toplevel
handle.
Please note that this can not be used to reliably identify unique toplevels,
because the Wayland protocol allows to recycle object ids.
.
.
.SH OPTIONS


@@ 70,7 65,7 @@ Print version and exit.
.RS
Output data as tab separated values.
The values are ordered as follows: title, app-id, maximized, minimized,
activated, fullscreen, outputs, object-id.
activated, fullscreen, outputs.
Title and app-id are quoted.
States are boolean (\(dqtrue\(dq or \(dqfalse\(dq).
The outputs field is a comma separated list of the quoted names of outputs the

M lswt.c => lswt.c +0 -3
@@ 426,7 426,6 @@ static void print_toplevel (struct Toplevel *toplevel)
		fputb(toplevel->activated, stdout);
		fputs(",\n        \"fullscreen\": ", stdout);
		fputb(toplevel->fullscreen, stdout);
		fprintf(stdout, ",\n        \"object-id\": %ld", (uint64_t)toplevel->handle);
		fputs(",\n        \"outputs\": [", stdout);

		bool prev = false;


@@ 494,8 493,6 @@ static void print_toplevel (struct Toplevel *toplevel)
			}
		}

		fprintf(stdout, "\t%ld", (uint64_t)toplevel->handle);

		fputc('\n', stdout);
	}
	else