Update dependencies and bump version
This commit is contained in:
parent
721fe5ee77
commit
b6d281967c
5 changed files with 105 additions and 87 deletions
|
|
@ -1,5 +1,4 @@
|
|||
use crate::server::{ObjectEvent, ObjectKey};
|
||||
use std::os::fd::OwnedFd;
|
||||
use std::os::unix::net::UnixStream;
|
||||
use std::sync::mpsc;
|
||||
use wayland_client::protocol::{
|
||||
|
|
@ -58,11 +57,6 @@ pub struct Globals {
|
|||
|
||||
pub type ClientQueueHandle = QueueHandle<Globals>;
|
||||
|
||||
pub struct ClientShmPool {
|
||||
pub pool: WlShmPool,
|
||||
pub fd: OwnedFd,
|
||||
}
|
||||
|
||||
pub struct ClientState {
|
||||
pub connection: Connection,
|
||||
pub queue: EventQueue<Globals>,
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ impl DataDeviceHandler for Globals {
|
|||
_: &wayland_client::Connection,
|
||||
_: &wayland_client::QueueHandle<Self>,
|
||||
_: &wayland_client::protocol::wl_data_device::WlDataDevice,
|
||||
_: f64,
|
||||
_: f64,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
@ -47,6 +49,9 @@ impl DataDeviceHandler for Globals {
|
|||
_: &wayland_client::Connection,
|
||||
_: &wayland_client::QueueHandle<Self>,
|
||||
_: &wayland_client::protocol::wl_data_device::WlDataDevice,
|
||||
_: f64,
|
||||
_: f64,
|
||||
_: &wayland_client::protocol::wl_surface::WlSurface,
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,15 +139,17 @@ impl XState {
|
|||
})
|
||||
.unwrap();
|
||||
|
||||
// Setup default cursor theme
|
||||
let ctx = CursorContext::new(&connection, screen).unwrap();
|
||||
let left_ptr = ctx.load_cursor(Cursor::LeftPtr);
|
||||
connection
|
||||
.send_and_check_request(&x::ChangeWindowAttributes {
|
||||
window: root,
|
||||
value_list: &[x::Cw::Cursor(left_ptr)],
|
||||
})
|
||||
.unwrap();
|
||||
{
|
||||
// Setup default cursor theme
|
||||
let ctx = CursorContext::new(&connection, screen).unwrap();
|
||||
let left_ptr = ctx.load_cursor(Cursor::LeftPtr);
|
||||
connection
|
||||
.send_and_check_request(&x::ChangeWindowAttributes {
|
||||
window: root,
|
||||
value_list: &[x::Cw::Cursor(left_ptr)],
|
||||
})
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
let wm_window = connection.generate_id();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue