mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
gpui: Fix for setting window titles on Windows (#21907)
Windows requires `WM_NCCREATE` to be processed by default procedure to set window title properly. Release Notes: - N/A
This commit is contained in:
parent
9143fd2924
commit
5de0bcc990
1 changed files with 1 additions and 1 deletions
|
@ -1068,7 +1068,7 @@ unsafe extern "system" fn wnd_proc(
|
|||
let weak = Box::new(Rc::downgrade(creation_result.as_ref().unwrap()));
|
||||
unsafe { set_window_long(hwnd, GWLP_USERDATA, Box::into_raw(weak) as isize) };
|
||||
ctx.inner = Some(creation_result);
|
||||
return LRESULT(1);
|
||||
return unsafe { DefWindowProcW(hwnd, msg, wparam, lparam) };
|
||||
}
|
||||
let ptr = unsafe { get_window_long(hwnd, GWLP_USERDATA) } as *mut Weak<WindowsWindowStatePtr>;
|
||||
if ptr.is_null() {
|
||||
|
|
Loading…
Reference in a new issue