treewide: update dependencies to latest version

This commit is contained in:
Richard Acayan 2024-11-27 22:04:52 -05:00
parent 67f6538a8b
commit 9ce953ef09
No known key found for this signature in database
GPG key ID: 0346F4894879DB73
4 changed files with 12 additions and 14 deletions

View file

@ -17,10 +17,10 @@ use wayland_client::protocol::wl_buffer::WlBuffer;
use wayland_client::protocol::wl_shm_pool::WlShmPool;
use wayland_client::protocol::wl_surface::WlSurface;
use zbus::Connection;
use zbus::InterfaceRef;
use zbus::Result;
use zbus::SignalContext;
use zbus::interface;
use zbus::object_server::InterfaceRef;
use zbus::object_server::SignalEmitter;
pub struct OSK0<T: Dispatch<WlBuffer, u32>
+ Dispatch<WlShmPool, u32>
@ -31,7 +31,7 @@ pub struct OSK0<T: Dispatch<WlBuffer, u32>
+ 'static> {
visible: AtomicBool,
gfx: Arc<Mutex<Graphics<Surface<T>>>>,
sigctx: SignalContext<'static>,
sigctx: SignalEmitter<'static>,
conn_wl: Arc<wayland_client::Connection>,
}
@ -83,7 +83,7 @@ impl<T: Dispatch<WlBuffer, u32>
conn_wl: Arc<wayland_client::Connection>)
-> Result<InterfaceRef<OSK0<T>>>
{
let sigctx = SignalContext::new(conn, "/sm/puri/OSK0")?;
let sigctx = SignalEmitter::new(conn, "/sm/puri/OSK0")?;
let visible = AtomicBool::new(false);
let osk = OSK0 { visible, gfx, sigctx, conn_wl };

View file

@ -19,7 +19,7 @@ use std::sync::Arc;
use std::time::Instant;
use tokio::task;
use wayland_client::globals;
use zbus::InterfaceRef;
use zbus::object_server::InterfaceRef;
pub struct VisibilityManager(InterfaceRef<OSK0<Dispatcher>>);

View file

@ -7,7 +7,6 @@ mod core;
// mod libei;
mod wayland;
use ashpd::WindowIdentifier;
use ashpd::desktop::PersistMode;
use ashpd::desktop::remote_desktop::DeviceType;
use ashpd::desktop::remote_desktop::RemoteDesktop;
@ -50,14 +49,13 @@ async fn main()
let mut events = Events::new();
let poller = Poller::new().unwrap();
let wi = WindowIdentifier::default();
let rd = RemoteDesktop::new().await.unwrap();
let session = rd.create_session().await.unwrap();
rd.select_devices(&session,
DeviceType::Keyboard.into(),
None,
PersistMode::DoNot).await.unwrap();
rd.start(&session, &wi).await.unwrap();
rd.start(&session, None).await.unwrap();
let eifd = rd.connect_to_eis(&session).await.unwrap();
let ei_ctx = Context::new(eifd.into()).unwrap();