gtk: Fix focusing on file dialog

Fixes atom/atom#3626.