Some fixes to pointer listening things in Gui.