mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
f97b997f38
commit
cd7edbcc11
@@ -1892,7 +1892,7 @@ static void shade_animate(WWindow *wwin, Bool what)
|
||||
int y, s, w, h;
|
||||
time_t time0 = time(NULL);
|
||||
|
||||
if (wwin->flags.skip_next_animation && wPreferences.no_animations)
|
||||
if (wwin->flags.skip_next_animation || wPreferences.no_animations)
|
||||
return;
|
||||
|
||||
switch(what) {
|
||||
|
||||
Reference in New Issue
Block a user