Repository: wezterm/wezterm (language: rust)

Issue:
unusable windows buttons appears when win32_system_backdrop is set to acrylic and tab bar opacity is less than 100
### What Operating System(s) are you seeing this problem on?

Windows

### Which Wayland compositor or X11 Window manager(s) are you using?

_No response_

### WezTerm version

20240405-180910-cce0706b

### Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

### Describe the bug

unusable windows buttons appear in the tab bar when win32_system_backdrop is set to acrylic or mica and the tab bar transparency is below 100% and window_decorations is set to resize
![Screenshot 2024-04-29 040329](https://github.com/wez/wezterm/assets/20058115/05ad54fa-f571-40eb-b141-bd527d70c8ea)


### To Reproduce

Copy the config below

### Configuration

config.window_decorations = "RESIZE"
config.window_background_opacity = 0.6
config.win32_system_backdrop = "Acrylic"
config.use_fancy_tab_bar = false
config.colors = {
  tab_bar = {
    background = "rgb(22, 24, 26 / 30%)",
  },
}


### Expected Behavior

_No response_

### Logs

_No response_

### Anything else?

_No response_


Discussion / hints:

Fix patch:
diff --git a/window/src/os/windows/window.rs b/window/src/os/windows/window.rs
index b38479c3790..bbeffb8459a 100644
--- a/window/src/os/windows/window.rs
+++ b/window/src/os/windows/window.rs
@@ -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(


Test patch: