xdg-shell: end pointer and keyboard grab at the same time
Created by: acrisci
Related to #1054
When you click on another surface during a popup grab, it should end both the keyboard grab and the pointer grab at the same time so that the popup closes when you switch focus (it didn't do that before).