Skip to content

Commit

Permalink
Merge pull request #301 from pentamassiv/bump_ashpd
Browse files Browse the repository at this point in the history
Update ashpd
  • Loading branch information
pentamassiv authored Jul 15, 2024
2 parents 59e2d4a + 2cf34ca commit d6913c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ foreign-types-shared = "0.3"
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
libc = "0.2"
reis = { version = "0.2.0", optional = true }
ashpd = { version = "0.8.1", optional = true }
ashpd = { version = "0.9.1", optional = true }
pollster = { version = "0.3.0", optional = true }
once_cell = { version = "1.19.0", optional = true }
wayland-protocols-misc = { version = "0.3", features = [
Expand Down
9 changes: 8 additions & 1 deletion src/linux/libei.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ impl Con {
// device_bitmask |= DeviceType::Touchscreen;
let session = remote_desktop.create_session().await.unwrap();
remote_desktop
.select_devices(&session, DeviceType::Keyboard | DeviceType::Pointer) // TODO: Add DeviceType::Touchscreen once we support it in enigo
.select_devices(
&session,
DeviceType::Keyboard | DeviceType::Pointer,
None, // TODO: Allow passing the restore_token via the EnigoSettings
ashpd::desktop::PersistMode::Application, /* TODO: Allow passing the
* restore_token via the
* EnigoSettings */
) // TODO: Add DeviceType::Touchscreen once we support it in enigo
.await
.unwrap();
trace!("new session");
Expand Down

0 comments on commit d6913c4

Please sign in to comment.