support moving window between heads using keyboard
commit8b919b0d33fed60da715588582e4b7b1126f5e72
authorGaspar Chilingarov <gasparch@gmail.com>
Sun, 16 Sep 2018 13:55:16 +0000 (16 16:55 +0300)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 16 Dec 2018 10:13:50 +0000 (16 10:13 +0000)
tree70023330a078106cd81a0e742af1fd5a7cc8e2fc
parentd13b78bdde173647f0cfdaf3aeeb19fa4e37a028
support moving window between heads using keyboard

Window Maker allows to perform practically all operations with windows
using only keyboard. One of the actions so far which required using
mouse was dragging window from one head (monitor) to another.

This patch introduces support for keyboard shortcuts. These shortcuts
move windows in circular fashion (if you have 3 and more monitors).

In case of 2 or 3 monitors arranged horizontally - window will just move
right/left.

In case of 3x3 setup - it is impossible to move window to central
monitor with keyboard.

- preserves window position and size (if display sizes are same)
- otherwise tries to fit window to smaller display
WPrefs.app/KeyboardShortcuts.c
src/actions.c
src/defaults.c
src/event.c
src/keybind.h