Skip to content

Virtual mods augment not applied on previous explicit default definition #24

@wismill

Description

@wismill

I expected the following:

xkb_keymap { 
    xkb_types { 
        virtual_modifiers M = 0;
        augment virtual_modifiers M = 1;
    };
};

to result in (simplified):

xkb_keymap {
    xkb_types {
        virtual_modifiers M = 1;
    };
};

but instead I got:

xkb_keymap {
    xkb_types {
        virtual_modifiers M;
    };
};

I do not think this is correct: setting M = 0 is equivalent to setting it to the default value of undefined mods, expect if overriding a previous definition1. So the augment statement should take effect here.

Footnotes

  1. e.g. M=1, then override M=0, resulting in M=0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions