Skip to content

可以用bpf监听复制粘贴吗? #4474

Discussion options

You must be logged in to vote

剪切板我知道的,可以用x11获取剪切的内容,但是我想的是从我这边开发的话,通过监听剪切板内容是否发生改变来判断是否复制的话我就得整个for死循环一直监听,我希望的是用户复制操作时,调用了某个内核函数,然后它主动来通知我发生了复制操作,不知道有这种内核函数么?

https://doc.qt.io/qt-6/qclipboard.html#changed

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@xiaonuoz
Comment options

@xiaonuoz
Comment options

@Decodetalkers
Comment options

Answer selected by xiaonuoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants