display: Use meta_window_has_pointer instead of XQueryPointer
display: Use G_SOURCE_CONTINUE / G_SOURCE_REMOVE
display: Remove unused variable