Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: firew4lker on March 12, 2010, 03:41:06 pm

Title: Using middle click to copy & paste text under GNU/Linux.
Post by: firew4lker on March 12, 2010, 03:41:06 pm
Hello everyone!

I am using C::B for some time now under Linux. I have noticed that selecting and copy function doesn't work properly. A normal operation would be the selected text of the code window to be placed to the clipboard (the one X uses) and pasted when mouse's middle click is pressed. This feature doesn't work for me when the selected text is located to the code window.

Like the picture bellow. After selecting the text pressing the middle click to another place of the code nothing happens.

(http://img202.imageshack.us/img202/3245/paypal1.th.png) (http://img202.imageshack.us/i/paypal1.png/)

If I select some text from the debug window, or any other external application, file etc. (images bellow) it will be pasted as expected on the code window.

(http://img202.imageshack.us/img202/7484/paypal2.th.png) (http://img202.imageshack.us/i/paypal2.png/)

(http://img121.imageshack.us/img121/9548/paypal3h.th.png) (http://img121.imageshack.us/i/paypal3h.png/)


I searched through the forum and the Internet. I found some references that showed to be related but I couldn't find a solution.

I am using ArchLinux linux-2.6.32-9 and Code::Blocks 8.02 wx-2.8.10
Title: Re: Using middle click to copy & paste text under GNU/Linux.
Post by: oBFusCATed on March 12, 2010, 04:01:51 pm
Try a recent nightly/svn build and the mousesap plugin (never tried it myself thought:( )

This is problem in wxGTK and can't be fixed easily :(
Title: Re: Using middle click to copy & paste text under GNU/Linux.
Post by: firew4lker on March 12, 2010, 04:45:34 pm
Thanks you for your reply!

I have to download the following?

http://code.google.com/p/cbkeymacs/downloads/list
Title: Re: Using middle click to copy & paste text under GNU/Linux.
Post by: oBFusCATed on March 12, 2010, 04:59:53 pm
No. The MouseSap is part of the contrib plugins in the C::B's source tree/distribution.