i am not sure how to solve this,

in windows 8 there are stray windows like charm bar, start menu, etc…
in windows 10 the applications which are build in electron/google chrome appear black while sharing

Any ideas how to solve this,



I have tried a few things.
The image is not empty, the black image that is returned has different data every time so it’s not possible to filter out a constant image.
The only thing I could find is to filter out specific applications like “charm bar”, “search pane” and “start menu” by name which is not a very good solution.