No. It was already possible for any X11 application to do this. Some people interpreted snap as providing additional protection against this, but it does not. Fixing it requires switching from X11 to another display server with a better security model, such as Wayland or Mir.