LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 06-18-2010, 04:49 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,439

Rep: Reputation: 80
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: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
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: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,439

Original Poster
Rep: Reputation: 80
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 11:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration