linuxmint/Cinnamon — pull request #1260 by autarkper (2012-10-09 10:46:07+00:00)
Title: [Alt-Tab] Fix thumbnail size calculation for some dual-head setups

This is cherry-picked from GNOME Shell. I think it makes sense, but I don't have the hardware to test it.

altTab: Fix thumbnail size calculation for some dual-head setups

The old formula worked only when the primary monitor was positioned at the
top of the virtual desktop. When that was not the case, the available
space was miscalculated sometimes resulting in negative numbers, which in
the end produced strangely vertically stretched window thumbnails.

https://bugzilla.gnome.org/show_bug.cgi?id=651130