Skip to content

[Bug] 双屏模式下锁屏解锁后窗口从副屏弹回主屏 #3244

Description

@yuloop

Operating system
Windows

Netcatty version
1.1.82

How did you install Netcatty?
GitHub Release (.exe)

Affected area

  • UI / layout

Can you reproduce it?
Always (100%)

Steps to reproduce

  1. 使用双屏扩展模式(笔记本主屏 + 副屏显示器)
  2. 将 Netcatty 主窗口拖到副屏上使用
  3. 锁屏(Win + L)
  4. 解锁后,Netcatty 窗口回到了主屏,而不是停留在副屏

Expected behavior
窗口解锁后保持在副屏上的位置不变。

Actual behavior
每次锁屏解锁后,在副屏上的 Netcatty 窗口都会跳到主屏。

Environment

  • OS: Windows 11 25H2 (Build 29639)
  • 主板: Colorful B760M-WHITE WIFI
  • 显卡: NVIDIA GeForce RTX 5060 (Driver 32.0.16.1656),另有 ToDesk 虚拟显示器
  • 内存: 64 GB
  • 显示器: 双屏扩展模式

Additional context
Related: #920 修复了 Settings 窗口在副屏打开时跳到主屏的问题(PR #928),但主窗口本身似乎没有做 off-screen 窗口位置校验。锁屏时 Windows 会重排显示布局,应用保存的窗口坐标可能失效,Electron 应用通常需要用 electron-window-state 并在恢复时检查 bounds 是否还在有效屏幕范围内。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageTouched by Cursor automationtriage:admittedReserved for serialized automatic issue triage admissiontriage:bug-readyConfirmed Netcatty bug ready for automatic implementation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions