The win_msg function initializes a union.. Apparently since XEvent is a
union the implied .xclient.type = 0 overrode the explicit .type =
ClientMessage.
Note: setting focus on gtk windows causes key presses to be missed for
some reason.. so comment that out for now.