BanishMouseCursorToCorner - bakkeby/dusk GitHub Wiki

The BanishMouseCursorToCorner functionality modifies the behaviour of BanishMouseCursor such that in addition to hiding the cursor it is also moved to one of the corners of the focused window.

This gives behaviour similar to what xbanish and unclutter offer.

If there are no windows on the current workspace then the mouse cursor will be moved to the top right corner of the current monitor.

The functionality will prioritise corners in the following order: NE, NW, SE, SW

If the corner being checked is overlapped by a floating window then the next corner will be checked. If all four corners of the window are overlapped by other windows then the mouse cursor will not move.

The mouse cursor position will be automatically restored on mouse movement.

The BanishMouseCursor functionality must be enabled in order for BanishMouseCursorToCorner to have any effect.


Why move the cursor to a window corner rather than just one of the corners of the monitor like other tools do?

Some web applications will react to the mouse cursor being moved away. This can cause issues where when entering text into a search box for example the cursor hides and because it is moved away the web page / application reacts and disrupts the input.

When not moving the mouse cursor then when scrolling down a web page using keys the position of the mouse cursor will still result in tool tips and hover actions triggering.

By moving the cursor to a corner of the window we avoid both that the cursor leaves the window and also hover actions triggering.


Back to Functionality.

⚠️ **GitHub.com Fallback** ⚠️