Skip to content

Commit

Permalink
feat(XWayland): add remove_app_id method
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Feb 13, 2024
1 parent 4dfe652 commit 47dd688
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/gamescope/xwayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@ impl DBusInterface {
Ok(())
}

/// Removes the app ID on the given window
async fn remove_app_id(&self, window_id: u32) -> fdo::Result<()> {
self.ensure_connected().await;
self.xwayland
.remove_xprop(window_id, GamescopeAtom::SteamGame)
.map_err(|err| fdo::Error::Failed(err.to_string()))?;
Ok(())
}

/// Returns whether or not the given window has an app ID set
async fn has_app_id(&self, window_id: u32) -> fdo::Result<bool> {
self.ensure_connected().await;
Expand Down

0 comments on commit 47dd688

Please sign in to comment.