swayfx/sway
Brian Ashworth 9b41db32ec Fix identifier output configs on reload
When generating default output configs to reset the outputs to their
default settings on reload, the output name was being used.
Additionally when determining the output config to apply, if there was
an output config with the output name, that was being used without
checking for an identifier config. This caused sway to completely ignore
the users specified output config.

To fix this issue, the following changes have been made:
1. Default output configs as created for the identifier now instead of
name. This actually makes more sense anyway since you could hotplug
multiple different outputs to the same port.
2. In get_output_config, which is only used to determine which output
config to apply, output configs for both the name and identifier are
queried. If both are found, a new output config is generated with the
identifier config merged on top of the name config. If just one is found,
a copy of that config is returned. This change also requires that the
result from get_output_config be freed after use to prevent memory
leaks, which required some minor changes to logic in
apply_output_config_to_outputs.
2018-12-03 08:51:27 +01:00
..
commands cmd_focus: show scratchpad if hidden 2018-12-03 08:49:26 +01:00
config Fix identifier output configs on reload 2018-12-03 08:51:27 +01:00
desktop Update for swaywm/wlroots#1403 2018-12-01 11:01:08 +01:00
input Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
tree Fix default_orientation auto 2018-11-28 13:52:54 -05:00
commands.c Merge pull request #3204 from RedSoxFan/cmd-res-list 2018-11-28 09:26:47 +01:00
config.c Introduce a way to show config warnings in swaynag 2018-11-28 11:09:01 -05:00
criteria.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
debug-tree.c Minor refactor of input manager 2018-10-20 13:11:43 +10:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c Implement bar gaps 2018-11-28 11:24:14 -05:00
ipc-server.c Fix json object ipc return 2018-11-29 08:28:42 +01:00
main.c Change execute_command to return a list of results 2018-11-27 21:42:09 -05:00
meson.build Implement bar gaps 2018-11-28 11:24:14 -05:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c Update for swaywm/wlroots#1387 2018-11-23 12:07:46 +01:00
sway-bar.5.scd Implement bar gaps 2018-11-28 11:24:14 -05:00
sway-input.5.scd Add scroll factor config option. 2018-11-18 13:49:30 -05:00
sway-output.5.scd fix typo 2018-12-02 20:48:53 +01:00
sway.1.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway.5.scd Add option to bindsym/bindcode to suppress warning on override 2018-12-02 21:35:44 -06:00
swaynag.c Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00