aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input/input-manager.h
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-03-15 02:20:07 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-16 10:41:02 -0600
commit73605dac2ae18e2ca84a74da895c4098a1bee6f8 (patch)
tree06cdbf312fe65c44becb39ca80dde118f3be66b6 /include/sway/input/input-manager.h
parent3106ef23a7b4f7f7efeb43d47e724f5b23c4fd78 (diff)
config/output: revamp identifier/name layering
This revamps the way that output configs are handled when referencing an output by both identifier and name. If an output is always referred to by name or by identifier, this should have no noticeable change. As soon as there is a name output config and an identifier output config that matches an output, an output config is generated that is named `<identifier> on <name>` that is generated with the identifier output config merged on top of the name output config and stored. When a change to either is stored, the delta is merged on top of that "id on name" output config, as well. If the "id on name" output config exists, it has the highest precedence and will be used when applying a config to the output. This fixes the following case: - `swaymsg output <name> bg /path/to/wallpaper1 fill` - `swaymsg output <identifier> bg /path/to/wallpaper2 fill` - `swaymsg output <name> dpms on` Without this, the wallpaper is changed to `/path/to/wallpaper1`. With this, the wallpaper remains `/path/to/wallpaper2`.
Diffstat (limited to 'include/sway/input/input-manager.h')
0 files changed, 0 insertions, 0 deletions