RFR: 8280982: [Wayland] [XWayland] java.awt.Robot taking screenshots

Alexander Zvegintsev azvegint at openjdk.org
Fri May 5 15:01:51 UTC 2023


On Fri, 5 May 2023 02:37:28 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> > If the user wishes to change their mind about the screens allowed to be captured, the user should use the new Robot#resetScreenCapturePermission method
> 
> Do we really need to add this new API? probably we can implement the feature w/o this new method?

I couldn't think of anything better. 
We need to somehow let the robot know that the saved `restore_token` no longer meets the user's expectations.
It seems that the current robot API is not suitable for this.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13803#issuecomment-1536387259



More information about the build-dev mailing list