windows: Rename some constants and functions in GPUI (#23348)
This PR renames the constants and functions previously introduced in PR#23283. Since the changes are within the GPUI crate, I renamed these from `**_ZED_**` to `**_GPUI_**`. Release Notes: - N/A
This commit is contained in:
parent
ac8220bb2e
commit
1d5499bee7
3 changed files with 15 additions and 13 deletions
|
@ -16,9 +16,9 @@ use windows::Win32::{
|
|||
|
||||
use crate::*;
|
||||
|
||||
pub(crate) const WM_ZED_CURSOR_STYLE_CHANGED: u32 = WM_USER + 1;
|
||||
pub(crate) const WM_ZED_CLOSE_ONE_WINDOW: u32 = WM_USER + 2;
|
||||
pub(crate) const WM_ZED_EVENT_DISPATCHED_ON_MAIN_THREAD: u32 = WM_USER + 3;
|
||||
pub(crate) const WM_GPUI_CURSOR_STYLE_CHANGED: u32 = WM_USER + 1;
|
||||
pub(crate) const WM_GPUI_CLOSE_ONE_WINDOW: u32 = WM_USER + 2;
|
||||
pub(crate) const WM_GPUI_TASK_DISPATCHED_ON_MAIN_THREAD: u32 = WM_USER + 3;
|
||||
|
||||
const SIZE_MOVE_LOOP_TIMER_ID: usize = 1;
|
||||
const AUTO_HIDE_TASKBAR_THICKNESS_PX: i32 = 1;
|
||||
|
@ -90,7 +90,7 @@ pub(crate) fn handle_msg(
|
|||
WM_SETCURSOR => handle_set_cursor(lparam, state_ptr),
|
||||
WM_SETTINGCHANGE => handle_system_settings_changed(handle, state_ptr),
|
||||
WM_DWMCOLORIZATIONCOLORCHANGED => handle_system_theme_changed(state_ptr),
|
||||
WM_ZED_CURSOR_STYLE_CHANGED => handle_cursor_changed(lparam, state_ptr),
|
||||
WM_GPUI_CURSOR_STYLE_CHANGED => handle_cursor_changed(lparam, state_ptr),
|
||||
_ => None,
|
||||
};
|
||||
if let Some(n) = handled {
|
||||
|
@ -246,7 +246,7 @@ fn handle_destroy_msg(handle: HWND, state_ptr: Rc<WindowsWindowStatePtr>) -> Opt
|
|||
unsafe {
|
||||
PostThreadMessageW(
|
||||
state_ptr.main_thread_id_win32,
|
||||
WM_ZED_CLOSE_ONE_WINDOW,
|
||||
WM_GPUI_CLOSE_ONE_WINDOW,
|
||||
WPARAM(state_ptr.validation_number),
|
||||
LPARAM(handle.0 as isize),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue