mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
@@ -232,3 +232,6 @@ web-sys = { version = "0.3.22", features = ['CanvasRenderingContext2d'] }
|
|||||||
members = [
|
members = [
|
||||||
"run-wasm",
|
"run-wasm",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
xim = { git = "https://github.com/forkgull/xim-rs", branch = "x11rb-13" }
|
||||||
|
|||||||
@@ -529,11 +529,9 @@ impl<T: 'static> EventProcessor<T> {
|
|||||||
event: WindowEvent::Destroyed,
|
event: WindowEvent::Destroyed,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ffi::PropertyNotify => {
|
|
||||||
let xev: &ffi::XPropertyEvent = xev.as_ref();
|
|
||||||
let atom = xev.atom as xproto::Atom;
|
|
||||||
|
|
||||||
if atom == xproto::Atom::from(xproto::AtomEnum::RESOURCE_MANAGER) {
|
X11Event::PropertyNotify(xev) => {
|
||||||
|
if xev.atom == xproto::Atom::from(xproto::AtomEnum::RESOURCE_MANAGER) {
|
||||||
self.process_dpi_change(&mut callback);
|
self.process_dpi_change(&mut callback);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ use crate::{
|
|||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
ffi,
|
ffi,
|
||||||
|
ime::ImeRequest,
|
||||||
util::{self, CustomCursor, SelectedCursor},
|
util::{self, CustomCursor, SelectedCursor},
|
||||||
CookieResultExt, EventLoopWindowTarget, ime::ImeRequest, VoidCookie, WindowId,
|
CookieResultExt, EventLoopWindowTarget, VoidCookie, WindowId, XConnection,
|
||||||
XConnection,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|||||||
Reference in New Issue
Block a user