mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
Fix X11 memory leak and remove mio-misc (#1987)
* Fix X11 memory leak and remove mio-misc I also fixed a couple of clippy lints. Fixes #1984 * Send the redraw event before waking up the main event * Use .map instead of a match, and remove comments saved by git * Remove unnecessary pub keywords on `WakeSender` in x11/mod.rs
This commit is contained in:
@@ -18,7 +18,7 @@ targets = ["i686-pc-windows-msvc", "x86_64-pc-windows-msvc", "i686-unknown-linux
|
||||
|
||||
[features]
|
||||
default = ["x11", "wayland"]
|
||||
x11 = ["x11-dl", "mio", "mio-misc", "percent-encoding", "parking_lot"]
|
||||
x11 = ["x11-dl", "mio", "percent-encoding", "parking_lot"]
|
||||
wayland = ["wayland-client", "wayland-protocols", "sctk"]
|
||||
|
||||
[dependencies]
|
||||
@@ -87,7 +87,6 @@ wayland-client = { version = "0.29", features = [ "dlopen"], optional = true }
|
||||
wayland-protocols = { version = "0.29", features = [ "staging_protocols"], optional = true }
|
||||
sctk = { package = "smithay-client-toolkit", version = "0.15.0", optional = true }
|
||||
mio = { version = "0.7", features = ["os-ext"], optional = true }
|
||||
mio-misc = { version = "1.0", optional = true }
|
||||
x11-dl = { version = "2.18.5", optional = true }
|
||||
percent-encoding = { version = "2.0", optional = true }
|
||||
parking_lot = { version = "0.11.0", optional = true }
|
||||
|
||||
Reference in New Issue
Block a user