Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

桌面歌词窗口导致Snipaste截图软件窗口元素检测失效 #10

Open
Aurorabili opened this issue Aug 13, 2024 · 1 comment
Open
Labels
Enhancement New feature or request

Comments

@Aurorabili
Copy link

问题

在 MacOS 14.5、Snipaste 2.9.2-Beta(20240702) 和 MxIris-LyricsX-Project/LyricsX v1.6.7(fc3dbea) 上确认这个问题。
Snipaste/feedback#2959

LyricsX 会创建一个除去菜单栏的全屏窗口以在所有其他窗口上方显示歌词,Snipaste 截图软件会因为这个窗口盖住了其他窗口而无法捕获其他窗口。即使勾选了屏幕截图时隐藏歌词也是如此。

预期行为

勾选屏幕截图时隐藏歌词功能后,截图软件不会捕获到 LyricsX 的全屏窗口。

截图

image
当光标放在终端上时,Snipaste 捕获了最上层 LyricsX 的窗口,而不是捕获终端,即使按tab也无济于事。

毫无疑问 Snipaste 和 LyricsX 都是非常棒的 MacOS 应用,我希望他们能够一起工作而不是我只能进行取舍。

@Mx-Iris
Copy link

Mx-Iris commented Aug 18, 2024

我用是iShot截图正常不会被截到,目前不清楚Snipaste的机制是什么,LyricsX截图时隐藏是设置了窗口的某个属性实现的

/** `-setSharingType:` specifies whether the window content can be read and/or written from another process.  
The default sharing type is \c NSWindowSharingReadOnly, which means other processes can read the window content (eg. for window capture) but cannot modify it.  
If you set your window sharing type to \c NSWindowSharingNone, so that the content cannot be captured, your window will also not be able to participate in a number of system services, so this setting should be used with caution.  
If you set your window sharing type to \c NSWindowSharingReadWrite, other processes can both read and modify the window content.
*/
@available(macOS 10.5, *)
open var sharingType: NSWindow.SharingType

@Mx-Iris Mx-Iris added the Enhancement New feature or request label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants