Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: frithjofh on August 09, 2008, 06:17:24 pm

Title: problems under linux using the mouse in editor
Post by: frithjofh on August 09, 2008, 06:17:24 pm
Hello everybody,

I'm using c::b 5177 on SuSE 11.0 x86_64 and note some diferences in the behavior of the mouse in the editor:

On windows XP I can use the mouse to move or copy marked text by clicking it with the left button and dragging it to the new location (holding Ctrl at the same time drags the selection as copy). Additionaly I can use the middle mouse button to click-insert text which is currently highlighted.

On my platform the above actions either do absolutely nothing or in case of the middle mouse button, insert the last text copied with Ctrl+c .

Am I missing some configuration options of c::b ? The rest of the componetnts of KDE like kate for example show the "normal" behavior of dragging copying and inserting.

I would apreciate all help ...

Greetings

Nausea
Title: Re: problems under linux using the mouse in editor
Post by: Pecan on August 09, 2008, 08:49:38 pm
http://forums.codeblocks.org/index.php/topic,7774.msg58700.html#msg58700

See attachment


[attachment deleted by admin]
Title: Re: problems under linux using the mouse in editor
Post by: frithjofh on August 09, 2008, 09:30:55 pm
Hi,

fine plugin. Just compiled it and installed it and works so far. Regarding my original posting: what about the ever so comfortable dragging or copy/dragging of selected text? Does this fall under the same topic, or will it be implemented in a newer, yet to come version of MouseSap?

Greetings

Nausea
Title: Re: problems under linux using the mouse in editor
Post by: Pecan on August 09, 2008, 10:25:02 pm
MouseSap will not implement dragNdrop.

A bug somewhere in gtk or scintilla causes the linux system to freeze up if the user drags too fast.

I gave up on dragNdrop for linux.
Title: Re: problems under linux using the mouse in editor
Post by: killerbot on August 10, 2008, 10:00:48 am
From our good friend Eran, I received the solution to this problem. Apparently it is a bug in wxScintilla.

As such I will apply his solution on the CB sources, drop a note here, and everybody please check if it solves the problem in your particular case.

I think I will be able to commit before the end of tomorrow.
Title: Re: problems under linux using the mouse in editor
Post by: killerbot on August 15, 2008, 08:21:04 pm
and fix committed, see http://forums.codeblocks.org/index.php/topic,8984.0.html for more details