Bug 1047660 - Making the software home button and the edge gestures play nice in landscape

I don't really like this part of the patch. But as discussed IRL, I don't have anything better to suggest :(