dsh-gufa-code 1.3.196 → 1.3.197
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.js
CHANGED
|
Binary file
|
|
@@ -2533,11 +2533,16 @@ void FloatApp::ToggleClickThrough() {
|
|
|
2533
2533
|
void FloatApp::ApplyClickThrough() {
|
|
2534
2534
|
if (hwnd_ == nullptr) return;
|
|
2535
2535
|
LONG_PTR exStyle = GetWindowLongPtrW(hwnd_, GWL_EXSTYLE);
|
|
2536
|
-
LONG_PTR next =
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2536
|
+
LONG_PTR next = exStyle;
|
|
2537
|
+
if (hostingMode_ == HostingMode::Composition) {
|
|
2538
|
+
/* DComp 顶层窗口:WS_EX_NOREDIRECTIONBITMAP 本身不提供鼠标穿透,
|
|
2539
|
+
也不能叠加 WS_EX_TRANSPARENT/WS_EX_LAYERED(会与 NORD 冲突/把点击丢给桌面)。
|
|
2540
|
+
正确做法是只改 WM_NCHITTEST 返回 HTTRANSPARENT(见 HandleNcHitTest)。 */
|
|
2541
|
+
next = exStyle & ~static_cast<LONG_PTR>(WS_EX_TRANSPARENT | WS_EX_LAYERED);
|
|
2542
|
+
} else {
|
|
2543
|
+
/* windowed 模式:WebView2 是子 HWND,用 layered + transparent 兜底。 */
|
|
2544
|
+
next = clickThrough_ ? (exStyle | WS_EX_TRANSPARENT)
|
|
2545
|
+
: (exStyle & ~static_cast<LONG_PTR>(WS_EX_TRANSPARENT));
|
|
2541
2546
|
if (clickThrough_) {
|
|
2542
2547
|
if ((next & WS_EX_LAYERED) == 0) {
|
|
2543
2548
|
next |= WS_EX_LAYERED;
|
|
@@ -2557,9 +2562,10 @@ void FloatApp::ApplyClickThrough() {
|
|
|
2557
2562
|
int childCount = 0;
|
|
2558
2563
|
EnumChildWindows(hwnd_, CountChildWindow, reinterpret_cast<LPARAM>(&childCount));
|
|
2559
2564
|
EnumChildWindows(hwnd_, SetChildClickThrough, clickThrough_ ? 1 : 0);
|
|
2560
|
-
LogFmt(L"click-through=%d mode=%s layered=%d children=%d", clickThrough_ ? 1 : 0,
|
|
2565
|
+
LogFmt(L"click-through=%d mode=%s layered=%d styleTransparent=%d children=%d", clickThrough_ ? 1 : 0,
|
|
2561
2566
|
hostingMode_ == HostingMode::Composition ? L"composition" : L"windowed",
|
|
2562
|
-
clickThroughLayered_ ? 1 : 0,
|
|
2567
|
+
clickThroughLayered_ ? 1 : 0,
|
|
2568
|
+
(GetWindowLongPtrW(hwnd_, GWL_EXSTYLE) & WS_EX_TRANSPARENT) != 0 ? 1 : 0, childCount);
|
|
2563
2569
|
}
|
|
2564
2570
|
|
|
2565
2571
|
void FloatApp::StopFollowing() {
|
package/package.json
CHANGED