Remove Drag 'n Drop from background of dockables

Hi !
First of all, thanks for this great job.
I’m trying to prevent DF from starting dragging dockables when the user begins a drag gesture on a component of the dockable other than the title.
I’d like to be able to move the dockable by dragging the title bar, but NOT by dragging the components it contains.
This is the behaviour of the demonstration application, but not the default behaviour of DF. It seems to be due to the “restrictedEnvironment” flag used in CControl creation. When it is set to true, dragging is only possible on the title of the dockable. But when i set this flag to true, some part of my application don’t work correctly anymore.( I’m using drag & drop too in my application).
So i wonder if their is any solution to prevent dragging of dockables from the components it contains in another way ?

Thanks

mat

Hm, a MouseListener (and a MouseMotionListener) is added to the root-Component of any Dockable. You could prevent MouseEvents to reach the root-Component by inserting a big panel that does not forward events:

		DefaultSingleCDockable dockable = new DefaultSingleCDockable( title, title );
		JPanel panel = new JPanel();
		dockable.add( panel );
		
		panel.addMouseListener( new MouseAdapter(){
			// this MouseListener catches and eats any MouseEvent
		});
		
		control.add( dockable );
		return dockable;
	}

… and there is a second solution that is much easier. Call this:

		
control.intern().getController().getRelocator().setDragOnlyTitel( true );

That will make sure that only components marked as “title of a dockable” (that includes things like the Ecilpse-Tab) can be dragged.

Exactly what i needed !
Thanks a lot !

mat