mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Add new_output_config, update root container size on output hotplug
This commit is contained in:
parent
41dd291612
commit
8764dc26c6
4 changed files with 9 additions and 6 deletions
|
|
@ -14,13 +14,18 @@ int output_name_cmp(const void *item, const void *data) {
|
|||
return strcmp(output->name, name);
|
||||
}
|
||||
|
||||
void output_config_defaults(struct output_config *oc) {
|
||||
struct output_config *new_output_config() {
|
||||
struct output_config *oc = calloc(1, sizeof(struct output_config));
|
||||
if (oc == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
oc->enabled = -1;
|
||||
oc->width = oc->height -1;
|
||||
oc->refresh_rate = -1;
|
||||
oc->x = oc->y = -1;
|
||||
oc->scale = -1;
|
||||
oc->transform = -1;
|
||||
return oc;
|
||||
}
|
||||
|
||||
void merge_output_config(struct output_config *dst, struct output_config *src) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue