fix crash in ftk_display_x11_on_resize