[[ Native Widgets ]] Improve edit mode behaviour for X11 layers