Black screen while sharing scrren

whenever i try to share my entire screen from google meet, it shows a black screen and cursor only. but it works fine when I try to share selective tabs or only one window.
it works fine in Mozilla though, also I am using linux