Put window callbacks in a substruct.