Fixed scoping error in wSwitchPanelSelectFirst().
commite0697c9162accae455307fc03dc2e8cd58b54045
authorIain Patterson <wm@iain.cx>
Wed, 2 Oct 2013 09:20:58 +0000 (2 10:20 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 2 Oct 2013 10:23:28 +0000 (2 12:23 +0200)
tree3823cac5225fd45e950279704349df9d9f96bd75
parent6366aeef3a9669cfc52614498042cf6e1eb36bb5
Fixed scoping error in wSwitchPanelSelectFirst().

We were using wwin as the temporary variable in WM_ITERATE_ARRAY() but
wwin was already set to the result of WMGetFromArray() and was due to be
returned from the function.  As a result of this oversight, wwin was
always set to NULL.

The bug could cause a problem in the - admittedly rare - case where all
windows were minimised at startup, causing the first invocation of the
switchpanel to highlight the first minimised window but then fail to
raise it.

Reported by Yury Tarasievich.
src/switchpanel.c