From: Alan F. <al...@wh...> - 2003-04-04 23:58:01
|
On Thu, Apr 03, 2003 at 01:41:44PM +0100, Steve Fosdick wrote: > I attach a patch against rdesktop 1.2.0 to implement a very crude paste > function from the X session into Terminal Server. Crude or not, this is fantastic! > This is a strictly tactical solution as it works by getting the X primary > selection as a string, translating the characters to keystrokes and then > sending them to the terminal server. It tries to handle keymaps correctly > but I make no guarantee on that one. This patch has already proved very very useful. I'd been trying to write something similar myself but I just didn't know enough about X selection programming. How I'd like to improve this patch is to check if the selection buffer contains anything -- if yes, send that, if not, send the middle button click. I've tried to implement this by putting a conditional rdp_send_input call in the SelectionNotify event, but unfortunately I seem to have failed miserably :( Could someone possibly look at implementing this? ;-) -- Alan Ford * al...@wh... |