mirror of
https://github.com/storytold/winit.git
synced 2026-11-29 17:55:16 +01:00
X11: Fix CursorEntered event for non-winit window (#1320)
* X11: Fix CursorEntered event for non-winit window * Retry CI Co-authored-by: Osspial <osspial@gmail.com>
This commit is contained in:
1 parent
38c8cb9f4a
commit
2f352ca5cf
2 files changed
+6
-4
No files matched your search
@@ -834,14 +834,15 @@ impl<T: 'static> EventProcessor<T> {
|
||||
}
|
||||
}
|
||||
}
|
||||
callback(Event::WindowEvent {
|
||||
window_id,
|
||||
event: CursorEntered { device_id },
|
||||
});
|
||||
|
||||
if let Some(dpi_factor) =
|
||||
self.with_window(xev.event, |window| window.hidpi_factor())
|
||||
{
|
||||
callback(Event::WindowEvent {
|
||||
window_id,
|
||||
event: CursorEntered { device_id },
|
||||
});
|
||||
|
||||
let position = LogicalPosition::from_physical(
|
||||
(xev.event_x as f64, xev.event_y as f64),
|
||||
dpi_factor,
|
||||
|
||||
Reference in new issue
Block a user