mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-16 11:37:47 +01:00
This commit fixes the issue that when the current desktop contains more than 1 windows, moving the focused window via `NextDesktop` and `PreviousDesktop` won't work. How? By adding 2 missing `sleep()` functions: 1.b91a18dbb8/Silica/Sources/SIWindow.m (L242)2.b91a18dbb8/Silica/Sources/SIWindow.m (L249)Also, this commit improves the implementation by resetting the mouse position. `NextDesktop` and `PreviousDesktop` are implemented by emulating mouse and keyboard events, draging the focused window and switching to the corresponding desktop. To make a window draggable, we have to move the mouse to the window's traffic light area. It is disturbing to not move the mouse back so this commit implements it.