Correct window shading logic.
commitcd7edbcc11a8b180dccdd584106c87736f9bcb3b
authorIain Patterson <wm@iain.cx>
Fri, 22 Jun 2012 16:03:59 +0000 (22 17:03 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 22 Jun 2012 16:26:02 +0000 (22 17:26 +0100)
treeeec649e939208d4af4fae4860e2cce73fa1b3a36
parentf97b997f382f466e40c851575bbb971f64db2d3b
Correct window shading logic.

Fons Adriaensen reported that:

> WM's 'unshade' seems to use multiple Expose events [...] even when
> all animations and 'superfluous effects' are disabled.

Typo in shade_animate() could cause windows to be animated when the
no_animations preference was set. With this patch I see fewer
XMoveWindow() calls and quicker shading.
src/actions.c