wmaker: improve the behaviour of window resizing by user
commit89295b91fb72c1fbf32c99012499b633f2f91ca3
authorIoan Moldovan <ioanm@outlook.com>
Sat, 19 Jul 2014 16:50:43 +0000 (19 18:50 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 20 Jul 2014 14:31:57 +0000 (20 15:31 +0100)
tree45d75edaed9bfb4c625d7d8aea8632c6f8d9477a
parent029846dd14dbefc56415253f498c3415e90f9fae
wmaker: improve the behaviour of window resizing by user

The original behaviour was a bit frustrating because it used the first
small mouse move to deduce the user's wished direction, but that is a bit
imprecise.

This patch divides the window in 9 rectangles:
 - 4 for corners, used for diagonal resizing
 - 4 for middles of sides, for resizing Up, Down, Left and Right
 - 1 useless in the middle of the the window, which falls back on diagonal
resizing
This leads to a more predictive behaviour.
src/moveres.c