JonnyHaystack / i3-resurrect

Simple solution to saving and restoring i3 workspaces
GNU General Public License v3.0
379 stars 19 forks source link

Time is wasted by unnecessarily getting window info with wmctrl when restoring layout #43

Closed JonnyHaystack closed 4 years ago

JonnyHaystack commented 5 years ago

Describe the bug Time taken to restore a layout increases rapidly with the number of windows currently open on the workspace. This is because I am unnecessarily using wmctrl to get window info that I do not need for restoring the layout, due to having reused the same function that is used when saving programs.

Expected behavior The time delay added by each window on the workspace should be much smaller and layouts should be restored much faster.