pointerdetector: Fix problem sending window-in messages

Change-Id: Id8d4f31700a8ee4d2850ea92fd8c9ba3b452889a
pointerdetector: Fix problem when get an empty windows layout

Change-Id: I196c7d8c413fa1da0937b8676e7b3c3748b2e516