pinnacle-comp / pinnacle

A WIP Smithay-based Wayland compositor, inspired by AwesomeWM and configured in Lua or Rust
GNU General Public License v3.0
266 stars 13 forks source link

Reloading the config can cause tags to change outputs #251

Closed Ottatop closed 3 months ago

Ottatop commented 3 months ago

Currently the way tags are handled on reload is:

  1. Tags are removed from all outputs
  2. The global tag id counter is reset
  3. New tags are added
  4. Windows get their tags replaced by the new tag of the same id

The problem is 4. For whatever reason I reloaded the config and my second monitor had tags added first instead of my main one, causing all the windows to swap outputs along with some weird layout glitching.

Unfortunately this seems nondeterministic and I've only had it happen once thus far.