(They are the most intelligent beings on earth afterall, according to the Hitchhiker's Guide)
When clicking a resource in your star menu that can only be added to your warehouse - let the click add it there instead of clicking the resource, scrolling your map to find the mayor's house and click that. Where else would you dump it.