Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows get left behind when restoring programs for workspace that is not yet focused #40

Closed
JonnyHaystack opened this issue Nov 2, 2019 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JonnyHaystack
Copy link
Owner

JonnyHaystack commented Nov 2, 2019

Describe the bug
Say you are on workspace 1 and you execute i3-resurrect restore -w 2 --programs-only, sometimes one or more program windows may get launched on workspace 1 instead of workspace 2.

I believe this is because the launching of programs with python's subprocess module is not synchronous with the workspace switching using i3.command(f'workspace --no-auto-back-and-forth {workspace}'). I'm experimenting right now using i3's exec command to launch programs instead and that seems to work, although unfortunately I have to do some slightly hacky things to make it work right..

To Reproduce
Described above.

Expected behavior
All programs should be launched on the workspace whose programs you are restoring.

System information (please complete the following information):

  • Linux distribution: Arch Linux
  • i3-resurrect version (output of i3-resurrect --version): 1.3.2
  • i3 version (output of i3 -v): 4.17.1
  • Python version (output of python -V): 3.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant