]> git.sur5r.net Git - i3/i3/commit
Do not canonicalize special output names
authorVladimir Panteleev <git@thecybershadow.net>
Tue, 19 Sep 2017 14:46:27 +0000 (14:46 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 19 Sep 2017 16:58:35 +0000 (18:58 +0200)
commit8144a0f480355c0cb134223d704345d67bd2b31d
tree5e4bf7aaec3c3cbd4ff501857483e7fb386a6579
parente4bfb4dae33242550b961a25d58451bd6257bfa4
Do not canonicalize special output names

canonicalize_output_name allowed the "primary" special output name to
be canonicalized, thus converting it to the name of whatever output
was the primary output at the time. This caused settings
(specifically, i3bar output and tray_output settings) to be stored as
specific output names, instead of the intended special names whose
referred output may change as the system's configuration (i.e. current
primary output) changes.

Add a check to canonicalize_output_name to return the name as-is if it
is the special name "primary".
src/ipc.c
testcases/t/538-i3bar-primary-output.t [new file with mode: 0644]