From b3bde921167ee0a7dc21cf7e3d642840a0fcc11e Mon Sep 17 00:00:00 2001
From: Moli <13026959681@163.com>
Date: 星期一, 04 五月 2026 18:55:57 +0800
Subject: [PATCH] 增加LLM对话插件

---
 src/Moli.Desktop/Interop/BottomDesktopLayerStrategy.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/Moli.Desktop/Interop/BottomDesktopLayerStrategy.cs b/src/Moli.Desktop/Interop/BottomDesktopLayerStrategy.cs
index 837c476..45e0692 100644
--- a/src/Moli.Desktop/Interop/BottomDesktopLayerStrategy.cs
+++ b/src/Moli.Desktop/Interop/BottomDesktopLayerStrategy.cs
@@ -1,5 +1,5 @@
-using Moli.Desktop.Configuration;
 using Moli.Desktop.Diagnostics;
+using Moli.Desktop.Layout;
 
 namespace Moli.Desktop.Interop;
 
@@ -17,16 +17,16 @@
 
     public bool IsSupported() => true;
 
-    public bool TryAttachWallpaperWindow(IntPtr hwnd, MonitorInfo monitor, out string? error)
+    public bool TryAttachDesktopWindow(IntPtr hwnd, RectD bounds, out string? error)
     {
         error = null;
         if (!NativeMethods.SetWindowPos(
             hwnd,
             NativeMethods.HwndBottom,
-            (int)monitor.Bounds.X,
-            (int)monitor.Bounds.Y,
-            (int)monitor.Bounds.Width,
-            (int)monitor.Bounds.Height,
+            (int)bounds.X,
+            (int)bounds.Y,
+            (int)bounds.Width,
+            (int)bounds.Height,
             NativeMethods.SwpNoActivate | NativeMethods.SwpShowWindow))
         {
             error = $"SetWindowPos failed with {NativeMethods.GetLastError()}";

--
Gitblit v1.9.1