http://bugs.winehq.org/show_bug.cgi?id=58223
--- Comment #2 from zlice zlice@crtdrift.us --- looking at this a little further, it looks like the above backout-return that checks for `if (data->wm_state_serial && !data->current_state.wm_state != !data->pending_state.wm_state)` is what really botches this up?
the 'fix' i had was only half right, and causes a bunch of issues because fluxbox doesn't seem to like properly unmapping icon'ed windows either