Duim gtk fixes 2

The grab-pointer code sometimes print a warning about the gdkwindow not being a gdkwindow.