Hot corners feature core
commit802cbc0d75932802ca12056792f6fae757d9a66c
authorDavid Maciejak <david.maciejak@gmail.com>
Sun, 26 Mar 2023 06:35:13 +0000 (26 14:35 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 26 Mar 2023 09:35:33 +0000 (26 10:35 +0100)
treebee509e04bc93f179b833959c9f80578774fb6c4
parent157d1ba85f0a7aa649383bcbdf3bcf6aa813a331
Hot corners feature core

Add mouse pointer position detection to trigger the corner actions.

Screen corners can be assigned an external command to be
executed when the mouse pointer is entering those areas.

In WPrefs, "Hot Corner Shortcut Preferences" can be used
for configuration or by manually adding a "HotCorners" key
and value to "YES" in the ~/GNUstep/Defaults/WindowMaker file.

Actions are specified by the "HotCornerActions" and are defined
as a four entries list ("top left action", "top right action",
"bottom left action", "bottom right action").
A screen corner area is a cube shape defined by the "HotCornerEdge"
which is a number of pixels from 2 (by default) to 10.

To lower the risk of triggering that feature accidentally a
"HotCornerDelay" key can be used which is the time before the action
is triggered while the pointer is in one of the screen corner.
Default value is 250 ms.

Hot Corners feature is disabled by default.
src/WindowMaker.h
src/defaults.c
src/event.c
src/screen.h