Skip to content

Conversation

@layercak3
Copy link
Contributor

Currently, scalable commands are treated as nonscalable when they are a subcommand of a list command. This commit writes scale to scalable subcommands and individually multiplies nonscalable subcommands.

Currently, scalable commands are treated as nonscalable when they are a
subcommand of a list command. This commit writes scale to scalable
subcommands and individually multiplies nonscalable subcommands.
sub->scale_units = 1;
if (cmd_multiplier > 1) {
for (int i = 0; i < cmd_multiplier - 1; i++)
sub->queue_next = mp_cmd_clone(sub);
Copy link
Member

@Dudemanguy Dudemanguy Jan 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mp_cmd_clone seems to leak if you spam enough events with a high enough scale. I had to set sway's scroll_factor to 10 and flick the mouse wheel around to hit it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants