|
6 | 6 |
|
7 | 7 | mod runner; |
8 | 8 |
|
| 9 | +use crate::{ |
| 10 | + dpi::{PhysicalPosition, PhysicalSize, PixelUnit}, |
| 11 | + error::ExternalError, |
| 12 | + event::{DeviceEvent, Event, Force, RawKeyEvent, Touch, TouchPhase, WindowEvent}, |
| 13 | + event_loop::{ControlFlow, DeviceEventFilter, EventLoopClosed, EventLoopWindowTarget as RootELW}, |
| 14 | + keyboard::{KeyCode, ModifiersState}, |
| 15 | + monitor::MonitorHandle as RootMonitorHandle, |
| 16 | + platform_impl::platform::{ |
| 17 | + dark_mode::try_window_theme, |
| 18 | + dpi::{become_dpi_aware, dpi_to_scale_factor, enable_non_client_dpi_scaling}, |
| 19 | + keyboard::is_msg_keyboard_related, |
| 20 | + keyboard_layout::LAYOUT_CACHE, |
| 21 | + minimal_ime::is_msg_ime_related, |
| 22 | + monitor::{self, MonitorHandle}, |
| 23 | + raw_input, util, |
| 24 | + window::set_skip_taskbar, |
| 25 | + window_state::{CursorFlags, WindowFlags, WindowState}, |
| 26 | + wrap_device_id, WindowId, DEVICE_ID, |
| 27 | + }, |
| 28 | + window::{Fullscreen, Theme, WindowId as RootWindowId}, |
| 29 | +}; |
9 | 30 | use crossbeam_channel::{self as channel, Receiver, Sender}; |
10 | 31 | use parking_lot::Mutex; |
| 32 | +use runner::{EventLoopRunner, EventLoopRunnerShared}; |
11 | 33 | use std::{ |
12 | 34 | cell::Cell, |
13 | 35 | collections::VecDeque, |
@@ -42,33 +64,9 @@ use windows::{ |
42 | 64 | }, |
43 | 65 | }, |
44 | 66 | }; |
45 | | -use crate::{ |
46 | | - dpi::{PhysicalPosition, PhysicalSize, PixelUnit}, |
47 | | - error::ExternalError, |
48 | | - event::{DeviceEvent, Event, Force, RawKeyEvent, Touch, TouchPhase, WindowEvent}, |
49 | | - event_loop::{ControlFlow, DeviceEventFilter, EventLoopClosed, EventLoopWindowTarget as RootELW}, |
50 | | - keyboard::{KeyCode, ModifiersState}, |
51 | | - monitor::MonitorHandle as RootMonitorHandle, |
52 | | - platform_impl::platform::{ |
53 | | - dark_mode::try_window_theme, |
54 | | - dpi::{become_dpi_aware, dpi_to_scale_factor, enable_non_client_dpi_scaling}, |
55 | | - keyboard::is_msg_keyboard_related, |
56 | | - keyboard_layout::LAYOUT_CACHE, |
57 | | - minimal_ime::is_msg_ime_related, |
58 | | - monitor::{self, MonitorHandle}, |
59 | | - raw_input, util, |
60 | | - window::set_skip_taskbar, |
61 | | - window_state::{CursorFlags, WindowFlags, WindowState}, |
62 | | - wrap_device_id, WindowId, DEVICE_ID, |
63 | | - }, |
64 | | - window::{Fullscreen, Theme, WindowId as RootWindowId}, |
65 | | -}; |
66 | | -use runner::{EventLoopRunner, EventLoopRunnerShared}; |
67 | 67 |
|
68 | 68 | #[cfg(feature = "push-notifications")] |
69 | | -use { |
70 | | - windows::Networking::PushNotifications::PushNotificationChannel, |
71 | | -}; |
| 69 | +use windows::Networking::PushNotifications::PushNotificationChannel; |
72 | 70 |
|
73 | 71 | type GetPointerFrameInfoHistory = unsafe extern "system" fn( |
74 | 72 | pointerId: u32, |
|
0 commit comments