![David Sundstrom](/assets/img/avatar_default.png)
It turns out none of this was necessary. X will handle windows placed partially off-screen and draw them correctly, just as it does for windows dragged partially off the screen to the left. Removing this function fixed a number of drawing issues including tool tips being incorrectly drawn and windows not being drawn correctly after they'd been placed partially off-screen to the right.