[Wayland] Fixes segfault when mouse enters window