使用剪贴板跟踪 x11 中的复制粘贴 [英] keeping track of copy-paste in x11 using clipboard

查看:65
本文介绍了使用剪贴板跟踪 x11 中的复制粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 x11 的新手.作为我最终项目的一部分,我必须使用 linux X 窗口系统中的剪贴板跟踪一台机器(从哪个窗口到哪个窗口)中的所有复制粘贴.为此,我认为我需要使用开源 x11.但我完全不知道从哪里开始.我应该处理x11的哪个模块,来处理x window系统的客户端间通信.http://www.x.org/releases/X11R7.7/src/

I'm a newbie to x11. As part of my final project, i have to keep track of all copy paste's in a single machine(from which window to which window) using clipboard in linux X window system. For that i think i need to work with open source x11. But i completely don't know where to start. Which module of x11 should i deal with, to handle the inter-client communication of the x window system. http://www.x.org/releases/X11R7.7/src/

如果可能,请为我提供一些有关 x11 客户端间通信的开发人员的良好资源.我在 x.org 上找到了很多文档,但没有明确给出关于实现的内容.

If possible please provide me some good source for developers in inter-client communications of x11. I found so many docs in x.org, but nothing is clearly given regarding the implementation.

推荐答案

X11 中的剪切和粘贴基于窗口属性和选择.这是一个非常好的 X11 粘贴缓冲区/剪贴板介绍/选择.阅读相关选择/属性,然后使用 XSelectInput 并监控 property/selection 变化.

Cut-and-paste in X11 is based on window properties and selections. This is a very good intro to X11 paste buffers/clipboards/selections. Read about associated selections/properties, then use XSelectInput and monitor property/selection changes.

X11 获取剪贴板文本

这篇关于使用剪贴板跟踪 x11 中的复制粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆