[Linux] Show preview contents for minimized windows

When minimizing a window, we hide the contents to prevent
unnecessary redrawing. However, this means that when the frame is
redrawn after the hiding, it is blank. Several desktop environments rely
on the window having contents when minimized, drawing the window
off-screen to be able to show preview content in overviews (Unity,
Gnome Shell).

This patch stops all drawing operations before hiding the
window, making sure that the content before hiding is retained and can
be shown by the window manager as a preview, but still avoiding unnecessary
redrawing of minimized windows.

BUG=156346

Review URL: https://codereview.chromium.org/542113004

Cr-Commit-Position: refs/heads/master@{#293909}
1 file changed