Align ScreenCast picker and stream metadata with portal contracts
This commit is contained in:
1 parent
ddbed192c0
commit
09a8cd346a
5 files changed
+179
-34
No files matched your search
@@ -301,7 +301,7 @@ async fn select_geometry(point: bool, windows: Option<String>) -> Result<Option<
|
||||
Ok(Some(geometry))
|
||||
}
|
||||
|
||||
async fn wait_for_surface_removal(pid: u32) -> Result<(), String> {
|
||||
pub(crate) async fn wait_for_surface_removal(pid: u32) -> Result<(), String> {
|
||||
for _ in 0..100 {
|
||||
if ipc("has-client-surfaces", serde_json::json!({"pid": pid})).await? == false {
|
||||
return Ok(());
|
||||
|
||||
Reference in new issue
Block a user