From 574a6a769115034f37bdecf3284545d74843816a Mon Sep 17 00:00:00 2001
From: chunhualin1 <chunhualin1@lenovo.com>
Date: 星期三, 12 八月 2026 15:21:41 +0800
Subject: [PATCH] 添加显示器切换兼容处理
---
src/Moli.Desktop/Interop/IDesktopLayerStrategy.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/Moli.Desktop/Interop/IDesktopLayerStrategy.cs b/src/Moli.Desktop/Interop/IDesktopLayerStrategy.cs
index d2ce85b..229e0fc 100644
--- a/src/Moli.Desktop/Interop/IDesktopLayerStrategy.cs
+++ b/src/Moli.Desktop/Interop/IDesktopLayerStrategy.cs
@@ -1,11 +1,12 @@
using Moli.Desktop.Configuration;
+using Moli.Desktop.Layout;
namespace Moli.Desktop.Interop;
-/// <summary>Places a wallpaper window into a desktop-compatible layer.</summary>
+/// <summary>Places a rendered surface into a desktop-compatible layer.</summary>
public interface IDesktopLayerStrategy
{
string Name { get; }
bool IsSupported();
- bool TryAttachWallpaperWindow(IntPtr hwnd, MonitorInfo monitor, out string? error);
+ bool TryAttachDesktopWindow(IntPtr hwnd, MonitorInfo monitor, RectD bounds, out string? error);
}
--
Gitblit v1.9.1