]> git.sur5r.net Git - i3/i3/commit
Do not canonicalize special output names 2970/head
authorVladimir Panteleev <git@thecybershadow.net>
Tue, 19 Sep 2017 14:46:27 +0000 (14:46 +0000)
committerVladimir Panteleev <git@thecybershadow.net>
Tue, 19 Sep 2017 14:57:08 +0000 (14:57 +0000)
commit760b2e1b4a2452c701ce06b4e94d00e74e778d59
tree82c6741034634fe38c52cee9b51e975e29564262
parentcaae4db0bc6516b08a2f138c5845c34053e50947
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]