Add map_from_region command

This commit is contained in:
emersion 2018-04-24 19:39:29 +01:00
parent d94bb78ff3
commit ff61df17ff
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
11 changed files with 160 additions and 25 deletions

View file

@ -269,11 +269,11 @@ static void seat_apply_input_config(struct sway_seat *seat,
}
wlr_log(L_DEBUG, "Applying input config to %s",
sway_device->input_device->identifier);
if (ic->mapped_output) {
if (ic->mapped_to_output) {
struct sway_container *output = NULL;
for (int i = 0; i < root_container.children->length; ++i) {
struct sway_container *_output = root_container.children->items[i];
if (strcasecmp(_output->name, ic->mapped_output) == 0) {
if (strcasecmp(_output->name, ic->mapped_to_output) == 0) {
output = _output;
break;
}