Skip to content

Sway: Handle workspace stealing between monitors #23

@dskvr

Description

@dskvr

Description

Sway allows workspaces to be "stolen" by another monitor when focused. Current implementation doesn't handle this atomic update correctly - both monitors need to be updated simultaneously.

Current Status

  • Basic Sway support working
  • Workspace context abstraction implemented
  • Single monitor updates work
  • Stealing events not handled properly

Tasks

  • Detect workspace steal events in Sway IPC
  • Implement atomic multi-monitor updates
  • Update both affected monitors in single animation frame
  • Handle edge case where workspace returns to original monitor
  • Test with various workspace movement scenarios

Implementation Notes

  • Need to track previous workspace locations
  • May need to batch IPC events for atomic updates
  • Consider animation synchronization between monitors

References

  • memory/compositor-workspace-analysis.md
  • Sway IPC documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompositor:swayRelated to Sway compositor supportp:3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions