Comment 226 for bug 11334

Revision history for this message
J Bruni (jbruni) wrote :

I don't want to wait for Zealous Zebu (Ubuntu 17.04) to see this resolved.

As a user, I want to use copy/paste being able to paste from a closed application. (Why leave it open, then go back only to close it?)

As a developer, I work with PHP doing simple web applications. I don't know about complex details on X-server using C language.

Anyway, I just want to contribute by sharing here some information about WHERE is the SOURCE CODE that deals with this issue and how to GET it. Others, like me, may want to "poke around" and, perhaps, ...help to develop a solution!

The package name is xserver-xorg-core

We can get the source code with the following command:

apt-get source xserver-xorg-core

I am using Lucid Lynx, and apt-get brought me Xserver 1.7.6 source code files.

Alternatively, if "git" is installed, repository can be cloned with the following command:

git clone git://git.debian.org/git/pkg-xorg/xserver/xorg-server

We can find several references to "clipboard" using "grep":

cd xorg-server*
grep -r "clipboard" *

Most important files seems to be:

hw/xwin/winclipboard.h
hw/xwin/winclipboardinit.c
hw/xwin/winclipboardthread.c
hw/xwin/winclipboardwndproc.c
hw/xwin/winclipboardxevents.c
hw/xwin/winclipboardwrappers.c
hw/xquartz/pbproxy/x-selection.m

Comprehensive information on how to compile Xserver can be found here: http://www.x.org/wiki/CompileXserverManually

I am not sure, but it seems that the latest developer who made changes in the Xserver clipboard management code is Harold L. Hunt. So, if someone wants to resolve this, I recommend asking directions to him - http://huntharo.com - huntharo (at) gmail.com

Another developer that seems to have dealed with Xserver clipboard issues is Colin Harrison - http://sourceforge.net/users/colinharrison

Hope this helps...

Good luck for us all!