ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.66k stars 486 forks source link

slight delay when switching between windows #779

Closed linde12 closed 5 years ago

linde12 commented 5 years ago

System

What's the problem?

Switching (focusing) windows is delayed. I'm no swift dev, but there is a perform call with afterDelay set to 0.2 at https://github.com/ianyh/Amethyst/blob/f92c71c5dd88aa4642b8a0d1203355680d4e1b33/Amethyst/Managers/WindowManager.swift#L235 which may or may not be the reason?

Everything feels so sluggish and i often start typing in the wrong window because i'm used to being able to switch focus and instantly start typing.

How can it be reproduced?

Switch between windows using the keyboard.

What applications are involved?

Irrelevant.

Has anything fixed it, even temporarily?

No.

dotfile (if you have one)

Irrelevant.

Screenshots

Irrelevant.

ianyh commented 5 years ago

Might be improved by #776. The code you pointed out has to do with reflowing, not window focus changes.

linde12 commented 5 years ago

Ah, alright, experience same slugishness with reordering windows as well. I will try new patch when i can, closing this for now!