mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11: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:
parent
38c8cb9f4a
commit
2f352ca5cf
|
@ -1,5 +1,6 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On X11, fix `CursorEntered` event being generated for non-winit windows.
|
||||||
- On macOS, fix crash when starting maximized without decorations.
|
- On macOS, fix crash when starting maximized without decorations.
|
||||||
- On macOS, fix application not to terminate on `run_return`.
|
- On macOS, fix application not to terminate on `run_return`.
|
||||||
- On Wayland, fix cursor icon updates on window borders when using CSD.
|
- On Wayland, fix cursor icon updates on window borders when using CSD.
|
||||||
|
|
|
@ -834,14 +834,15 @@ impl<T: 'static> EventProcessor<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(dpi_factor) =
|
||||||
|
self.with_window(xev.event, |window| window.hidpi_factor())
|
||||||
|
{
|
||||||
callback(Event::WindowEvent {
|
callback(Event::WindowEvent {
|
||||||
window_id,
|
window_id,
|
||||||
event: CursorEntered { device_id },
|
event: CursorEntered { device_id },
|
||||||
});
|
});
|
||||||
|
|
||||||
if let Some(dpi_factor) =
|
|
||||||
self.with_window(xev.event, |window| window.hidpi_factor())
|
|
||||||
{
|
|
||||||
let position = LogicalPosition::from_physical(
|
let position = LogicalPosition::from_physical(
|
||||||
(xev.event_x as f64, xev.event_y as f64),
|
(xev.event_x as f64, xev.event_y as f64),
|
||||||
dpi_factor,
|
dpi_factor,
|
||||||
|
|
Loading…
Reference in a new issue