aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_default.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-15 02:20:07 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-16 10:41:02 -0600
commit73605dac2ae18e2ca84a74da895c4098a1bee6f8 (patch)
tree06cdbf312fe65c44becb39ca80dde118f3be66b6 /sway/input/seatop_default.c
parentFix output config retrieval for new outputs (diff)
downloadsway-73605dac2ae18e2ca84a74da895c4098a1bee6f8.tar.gz
sway-73605dac2ae18e2ca84a74da895c4098a1bee6f8.tar.zst
sway-73605dac2ae18e2ca84a74da895c4098a1bee6f8.zip
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 'sway/input/seatop_default.c')
0 files changed, 0 insertions, 0 deletions