Skip to content

Filter out special output __i3 which contains scratchpad - #2979

Merged
Alexays merged 1 commit into
Alexays:masterfrom
grimpy:filterscratch
Feb 28, 2024
Merged

Alexays merged 1 commit into
Alexays:masterfrom
grimpy:filterscratch

Conversation

@grimpy

@grimpy grimpy commented Feb 27, 2024

Copy link
Copy Markdown
Contributor

Fixes: #2966

Fixes: Alexays#2966

Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com>
@grimpy

grimpy commented Feb 27, 2024

Copy link
Copy Markdown
Contributor Author

I'm not 100% sure what's wrong in the clang-tidy workflow, did I tip over the scale of complexity?

if (alloutputs && output["name"].asString() != "__i3") {
return true;
}
if (output["name"].asString() == bar_.output->name) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Mhmm we should check !alloutputs here otherwise the logic will be the same as before.

@grimpy grimpy Feb 28, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the only way for it to reach here is, when !allouput == true and when output["name"] == __i3 which will not match bar_.output->name

@Alexays
Alexays merged commit e7c7ef6 into Alexays:master Feb 28, 2024
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.

sway/workspaces displays __i3_scratch as a workspace if all-outputs is true

2 participants