Author Topic: problems under linux using the mouse in editor  (Read 6482 times)

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
problems under linux using the mouse in editor
« 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
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2875
Re: problems under linux using the mouse in editor
« Reply #1 on: August 09, 2008, 08:49:38 pm »

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: problems under linux using the mouse in editor
« Reply #2 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
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2875
Re: problems under linux using the mouse in editor
« Reply #3 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.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: problems under linux using the mouse in editor
« Reply #4 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.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: problems under linux using the mouse in editor
« Reply #5 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