Took me two days to figure that out :/ I'm pretty sure it's the way things are supposed to be
} else {
/* ... or update the offset */
- map->priority_offset = layer_min_gnl_prio + priority - tr->priority;
+ map->priority_offset = tr->priority - layer_min_gnl_prio + priority;
}
}
/* Update the internal priority_offset */
map->priority_offset =
- (layer_min_gnl_prio + object->priority) - tck_priority;
+ tck_priority - (layer_min_gnl_prio + object->priority);
} else if (tck_priority < layer_min_gnl_prio + object->priority) {
/* Or update the parent priority, the object priority is always the