Swap event dependency with window