mirror of
https://github.com/wez/wezterm.git
synced 2024-08-17 10:10:23 +03:00
fixed the issue #5348 and a typo
Fixed the issue #5348 for windows by setting margins check for window decoration instead and using value 0 margin for only the TITLE style
This commit is contained in:
parent
65a84ddd60
commit
d9455a45fe
@ -1424,7 +1424,7 @@ fn apply_theme(hwnd: HWND) -> Option<LRESULT> {
|
||||
if let Some(inner) = rc_from_hwnd(hwnd) {
|
||||
let mut inner = inner.borrow_mut();
|
||||
|
||||
// Set Arylic or Mica system Backdrop
|
||||
// Set Acrylic or Mica system Backdrop
|
||||
let pv_attribute = match inner.config.win32_system_backdrop {
|
||||
SystemBackdrop::Auto => DWM_SYSTEMBACKDROP_TYPE::DWMSBT_AUTO,
|
||||
SystemBackdrop::Disable => DWM_SYSTEMBACKDROP_TYPE::DWMSBT_NONE,
|
||||
@ -1433,9 +1433,9 @@ fn apply_theme(hwnd: HWND) -> Option<LRESULT> {
|
||||
SystemBackdrop::Tabbed => DWM_SYSTEMBACKDROP_TYPE::DWMSBT_TABBEDWINDOW,
|
||||
};
|
||||
|
||||
let margins = match inner.config.win32_system_backdrop {
|
||||
SystemBackdrop::Auto | SystemBackdrop::Disable => 0,
|
||||
SystemBackdrop::Acrylic | SystemBackdrop::Mica | SystemBackdrop::Tabbed => -1,
|
||||
let margins = match inner.config.window_decorations {
|
||||
WindowDecorations::TITLE => -1,
|
||||
_ => 0,
|
||||
};
|
||||
|
||||
DwmExtendFrameIntoClientArea(
|
||||
|
Loading…
Reference in New Issue
Block a user