With sloppy focus, the window get focus immediatly when pointer enters into it. Can I add a timer to delay the focus, say when the pointer leave window A and enter window B, A still has focus until pointer stays in B for 1 sec?
I have this request because I have some buttons at the corner of the screen that control current window. I don’t want the current window lose focus when I move my mouse just passing some other windows.
Try to use enter_window instead of focus_change. Also you will have to use a different focus policy for it not to change the focus before your event does.