I recently bought a Dell XPS 13 and am running Ubuntu 16.10 with Unity. I've run into an issue where any window that is maximized, minimized, and then restored (so maximized again) causes the mouse to be offset up or down from where the pointer actually is.
This happens whether using the "Show Desktop" button, hot cornered "Show Desktop", or minimized using the window's minimize button. It doesn't happen when alt tabbing to a background application unless that application is minimized.
This seems to affect all applications (Firefox, Thunderebird,Terminal, etc) but only to the application that was minimized (meaning not all at the same time unless I minimize all the maximized windows)
To correct the issue, I have to click the maximize button again to restore the window (so not minimized and not full screen) and then maximize to maximize again. Or completely close and reopen the application.