LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-18-2010, 04:49 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Selection Buffer sending text before completing selection


How can I change the behavior of the selection buffer or a program that uses it ( I have xclip) to not send me text until the mouse button is released while clicking and dragging? This causes havok in the software I'm developing that tries to make use of the selection buffer. I need the full selection, not bits more bits more bits and then the full selection.

EDIT: I cannot listen for mouse events such as button release outside of the GUI of my program.

Last edited by fakie_flip; 06-18-2010 at 05:02 PM.
 
Old 06-18-2010, 07:20 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
This is what the xsel man page has to say about the selection "buffer".

Quote:
There is no X selection buffer. The selection mechanism in X11 is an interclient communication mediated by the X server each time any program wishes to know the selection contents, eg. to perform a middle mouse button paste.
So I'm guessing there probably isn't all that much you can do about it, without looking carefully into the source code or the xlib functions. I can only suggest maybe looking into modifying your commands to copy the primary selection into the secondary or clipboard (y'know, I've never been able to figure out what the secondary is supposed to be for); and hopefully control the timing of when you get it back.
 
Old 06-20-2010, 07:54 AM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
It was only happening when I was testing my software by highlighting text in Netbeans IDE. I was also running the software from Netbeans, so that may have been why. I didn't know it was only happening this way, so it's not a problem. Thanks for the response.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to use shift + insert to paste and copy using text selection anssprasad Linux - General 2 03-09-2010 07:06 PM
text selection question in text editor olin Linux - Software 1 09-25-2007 01:25 PM
tcsh double click text selection - extra characters Kyoseki Linux - Desktop 4 10-17-2006 12:03 AM
L.A.M.P and selection binary_dreamer Programming 5 06-21-2006 02:05 AM
Text selection problem with Gedit liaohaohui Linux - Software 0 11-18-2004 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration