Skip to content

Conversation

@mahkoh
Copy link
Owner

@mahkoh mahkoh commented Dec 19, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the xdg-toplevel state management from using an AHashSet<u32> to a bitmask stored in a NumCell<u32>. This provides more efficient state storage and operations.

  • Introduced state_bits() helper function to convert state values to bit positions
  • Replaced set operations (insert/remove/contains) with bitwise operations (or_assign/and_assign/contains)
  • Updated initialization logic to conditionally set tiled states based on protocol version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mahkoh mahkoh force-pushed the jorth/toplevel-bitmask branch from 5040bc2 to 0d844ac Compare December 19, 2025 20:10
@mahkoh mahkoh merged commit d461933 into master Dec 19, 2025
7 checks passed
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