maybe fixup build for windows

This commit is contained in:
Wez Furlong committed 2020-10-05 11:57:08 -07:00
1 parent a0b3932e6d
commit bf266a326d
2 files changed
+6 -3

No files matched your search

+3
View File
@@ -28,3 +28,6 @@ termwiz = { path = "../termwiz" }
toml = "0.5"
wezterm-term = { path = "../term", features=["use_serde"] }
mlua = {version="0.2", features=["vendored"]}
[target."cfg(windows)".dependencies]
winapi = { version = "0.3", features = ["winuser"]}
+3 -3
View File
@@ -263,7 +263,7 @@ fn schedule_show_window(hwnd: HWindow, show: bool) {
unsafe {
ShowWindow(hwnd.0, if show { SW_NORMAL } else { SW_HIDE });
}
});
}).detach();
}
impl WindowOpsMut for WindowInner {
@@ -273,7 +273,7 @@ impl WindowOpsMut for WindowInner {
unsafe {
DestroyWindow(hwnd.0);
}
});
}).detach();
}
fn show(&mut self) {
@@ -309,7 +309,7 @@ impl WindowOpsMut for WindowInner {
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER,
);
}
});
}).detach();
}
fn set_window_position(&self, coords: ScreenPoint) {