wayland: update to SCTK 0.14
This commit is contained in:
1 parent
355b2f5b5a
commit
d1177a29c2
4 files changed
+19
-49
No files matched your search
Generated
+11
-41
@@ -542,12 +542,12 @@ checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba"
|
||||
|
||||
[[package]]
|
||||
name = "calloop"
|
||||
version = "0.6.5"
|
||||
version = "0.7.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0b036167e76041694579972c28cf4877b4f92da222560ddb49008937b6a6727c"
|
||||
checksum = "9d0a1340115d6bd81e1066469091596a339f68878a2ce3c2f39e546607d22131"
|
||||
dependencies = [
|
||||
"log",
|
||||
"nix 0.18.0",
|
||||
"nix 0.19.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1067,15 +1067,6 @@ dependencies = [
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dlib"
|
||||
version = "0.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b11f15d1e3268f140f68d390637d5e76d849782d971ae7063e0da69fe9709a76"
|
||||
dependencies = [
|
||||
"libloading 0.6.7",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dlib"
|
||||
version = "0.5.0"
|
||||
@@ -2324,15 +2315,6 @@ dependencies = [
|
||||
"winapi 0.3.9",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "memmap2"
|
||||
version = "0.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d9b70ca2a6103ac8b665dc150b142ef0e4e89df640c9e6cf295d189c3caebe5a"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "memmap2"
|
||||
version = "0.2.3"
|
||||
@@ -2582,18 +2564,6 @@ dependencies = [
|
||||
"void",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.18.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "83450fe6a6142ddd95fb064b746083fc4ef1705fe81f64a64e1d4b39f54a1055"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cc",
|
||||
"cfg-if 0.1.10",
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.19.1"
|
||||
@@ -3934,18 +3904,17 @@ checksum = "f67ad224767faa3c7d8b6d91985b78e70a1324408abcb1cfcc2be4c06bc06043"
|
||||
|
||||
[[package]]
|
||||
name = "smithay-client-toolkit"
|
||||
version = "0.12.3"
|
||||
version = "0.14.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4750c76fd5d3ac95fa3ed80fe667d6a3d8590a960e5b575b98eea93339a80b80"
|
||||
checksum = "ec783683499a2cfc85b6df3d04f83b1907b5cbd98a1aed44667dbdf1eac4e64c"
|
||||
dependencies = [
|
||||
"andrew",
|
||||
"bitflags",
|
||||
"calloop",
|
||||
"dlib 0.4.2",
|
||||
"dlib",
|
||||
"lazy_static",
|
||||
"log",
|
||||
"memmap2 0.1.0",
|
||||
"nix 0.18.0",
|
||||
"memmap2",
|
||||
"nix 0.20.0",
|
||||
"wayland-client",
|
||||
"wayland-cursor",
|
||||
"wayland-protocols",
|
||||
@@ -4754,7 +4723,8 @@ version = "0.28.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2907bd297eef464a95ba9349ea771611771aa285b932526c633dc94d5400a8e2"
|
||||
dependencies = [
|
||||
"dlib 0.5.0",
|
||||
"dlib",
|
||||
"lazy_static",
|
||||
"pkg-config",
|
||||
]
|
||||
|
||||
@@ -4876,7 +4846,7 @@ dependencies = [
|
||||
"k9",
|
||||
"lazy_static",
|
||||
"log",
|
||||
"memmap2 0.2.3",
|
||||
"memmap2",
|
||||
"metrics",
|
||||
"mux",
|
||||
"ordered-float",
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ xcb-util = { features = [ "cursor", "image", "icccm", "ewmh", "keysyms"], versio
|
||||
xkbcommon = { version = "0.5", features = ["x11", "wayland"], git="https://github.com/wez/xkbcommon-rs.git", rev="01a0a0cd5663405e6e4abb1ad3add9add1496f58"}
|
||||
mio = "0.6"
|
||||
libc = "0.2"
|
||||
smithay-client-toolkit = {version = "0.12", features=["calloop"], optional=true}
|
||||
smithay-client-toolkit = {version = "0.14", features=["calloop"], optional=true}
|
||||
wayland-protocols = {version="0.28", optional=true}
|
||||
wayland-client = {version="0.28", optional=true}
|
||||
wayland-egl = {version="0.28", optional=true}
|
||||
|
||||
@@ -38,7 +38,7 @@ pub struct WaylandConnection {
|
||||
pub(crate) keyboard: KeyboardDispatcher,
|
||||
seat_listener: SeatListener,
|
||||
pub(crate) environment: RefCell<Environment<MyEnvironment>>,
|
||||
event_q: RefCell<EventLoop<()>>,
|
||||
event_q: RefCell<EventLoop<'static, ()>>,
|
||||
pub(crate) display: RefCell<Display>,
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ impl WaylandConnection {
|
||||
pub fn create_new() -> anyhow::Result<Self> {
|
||||
let (environment, display, event_q) =
|
||||
toolkit::new_default_environment!(MyEnvironment, desktop)?;
|
||||
let event_loop = toolkit::reexports::calloop::EventLoop::<()>::new()?;
|
||||
let event_loop = toolkit::reexports::calloop::EventLoop::<()>::try_new()?;
|
||||
|
||||
let keyboard = KeyboardDispatcher::new();
|
||||
let mut pointer = None;
|
||||
@@ -186,11 +186,11 @@ impl EventSource for SpawnQueueSource {
|
||||
}
|
||||
|
||||
fn register(&mut self, poll: &mut Poll, token: Token) -> std::io::Result<()> {
|
||||
poll.register(SPAWN_QUEUE.raw_fd(), Interest::Readable, Mode::Level, token)
|
||||
poll.register(SPAWN_QUEUE.raw_fd(), Interest::READ, Mode::Level, token)
|
||||
}
|
||||
|
||||
fn reregister(&mut self, poll: &mut Poll, token: Token) -> std::io::Result<()> {
|
||||
poll.register(SPAWN_QUEUE.raw_fd(), Interest::Readable, Mode::Level, token)
|
||||
poll.register(SPAWN_QUEUE.raw_fd(), Interest::READ, Mode::Level, token)
|
||||
}
|
||||
|
||||
fn unregister(&mut self, poll: &mut Poll) -> std::io::Result<()> {
|
||||
|
||||
@@ -3,9 +3,9 @@ use anyhow::anyhow;
|
||||
use smithay_client_toolkit as toolkit;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use toolkit::reexports::calloop::{LoopHandle, Source};
|
||||
use toolkit::reexports::calloop::{LoopHandle, RegistrationToken};
|
||||
use toolkit::seat::keyboard::{
|
||||
map_keyboard_repeat, Event as KbEvent, KeyState, ModifiersState, RepeatKind, RepeatSource,
|
||||
map_keyboard_repeat, Event as KbEvent, KeyState, ModifiersState, RepeatKind,
|
||||
};
|
||||
use wayland_client::protocol::wl_keyboard::WlKeyboard;
|
||||
use wayland_client::protocol::wl_seat::WlSeat;
|
||||
@@ -17,7 +17,7 @@ use wezterm_input_types::*;
|
||||
struct Inner {
|
||||
active_surface_id: u32,
|
||||
surface_to_window_id: HashMap<u32, usize>,
|
||||
by_name: HashMap<String, (WlKeyboard, Source<RepeatSource>)>,
|
||||
by_name: HashMap<String, (WlKeyboard, RegistrationToken)>,
|
||||
}
|
||||
|
||||
impl Inner {
|
||||
|
||||
Reference in new issue
Block a user