Refactor linux gdk