main: Update pointer focus state for button releases
Failure to do so makes the old pointer focus target 'sticky', because we end up ignoring the result of picking the pointer focus until a motion event comes in.
Fixes: #3172 (closed)
@garnacho: this needs your review