mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
rename the field
This commit is contained in:
parent
8e13f85fac
commit
d6b9faacc9
|
@ -701,7 +701,7 @@ impl Window2 {
|
|||
x_events_loop.windows.lock().unwrap().insert(win.id(), WindowData {
|
||||
im: im,
|
||||
ic: ic,
|
||||
spot: ffi::XPoint {x: 0, y: 0},
|
||||
ic_spot: ffi::XPoint {x: 0, y: 0},
|
||||
config: None,
|
||||
multitouch: window.multitouch,
|
||||
cursor_pos: None,
|
||||
|
@ -725,10 +725,10 @@ impl Window2 {
|
|||
let nspot = ffi::XPoint{x: x, y: y};
|
||||
let mut windows = windows.lock().unwrap();
|
||||
let mut w = windows.get_mut(&self.window.id()).unwrap();
|
||||
if w.spot.x == x && w.spot.y == y {
|
||||
if w.ic_spot.x == x && w.ic_spot.y == y {
|
||||
return
|
||||
}
|
||||
w.spot = nspot;
|
||||
w.ic_spot = nspot;
|
||||
unsafe {
|
||||
let preedit_attr = (display.xlib.XVaCreateNestedList)
|
||||
(0, b"spotLocation\0", &nspot, ptr::null::<()>());
|
||||
|
@ -759,7 +759,7 @@ struct WindowData {
|
|||
config: Option<WindowConfig>,
|
||||
im: ffi::XIM,
|
||||
ic: ffi::XIC,
|
||||
spot: ffi::XPoint,
|
||||
ic_spot: ffi::XPoint,
|
||||
multitouch: bool,
|
||||
cursor_pos: Option<(f64, f64)>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue