-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting output config by name after it has been set by identifier doesn't work on sway startup but does on reload #5632
Comments
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Lines 698 to 700 in 02b412a
This comment indicates that during startup, the output don't exist -- which is true as per my testing; during initial config load, The comment also indicates that during startup, the "new output event" should apply the config. I dug down through that, and found the cause of this issue: There's then three ways to fix the issue at hand:
|
I don't think this is the case? If you configure "DP-1", then configure "BenQ EL2870U F8K02862SL0" (same output), then configure "DP-1" again, I think the last configure will update the first item in the list? |
Ah, I hadn't though of that scenario. I guess that means that respecting the order of entries (when one uses an identifier and another a name) in the config file would require a large refactor than expected, and, as per this comment, it seems that's not the intended behaviour by design anyway. I guess this narrows down the options to:
I'd also like to address this in a way that paves the road for #6410, and I think the second approach might make that a bit easier. Just to be clear though, the current implementation means that if I've set up |
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Instead of doing merges of output configs in several places just keep a list of all config changes and apply them in order when needed. Fixes swaywm#5632
Please fill out the following:
Sway Version: sway version v1.5-108b8e97 (Aug 19 2020, branch 'HEAD')
Debug Log: https://gist.github.com/pedrocr/d618d47d76e7196882f65b014f6bbbac
Configuration File: Default config plus some output configs like these:
The identifier is for the monitor attached to the
DP-1
output.The text was updated successfully, but these errors were encountered: