[rekonq] don't focus tab on middle mouse click

Ronny Scholz ronny_scholz at web.de
Sun Oct 25 11:30:40 CET 2009


Am Sonntag, 25. Oktober 2009 11:04:15 schrieb Andrea Diamantini:
> On Sunday 25 October 2009 02:53:52 Ronny Scholz wrote:
> > This is a fix for bug https://bugs.kde.org/show_bug.cgi?id=205902
> >
> > The problem is that the click event of the middle mouse button onto a tab
> > activates it. Therefore, if a tab in the background is closed, the
> >  currently activated tab looses the focus.
> >
> > With the attached patch, rekonq won't focus a tab on middle mouse click.
> > However, we will also loose the possibility to move tabs with the middle
> >  mouse button (left button still works though), so this fix may need some
> >  discussion.
> 
> Why not just implementing a closeTab(index) call to middle mouse button
>  click, instead of ignoring the event?
> 

This is the current implementation. But mousePressed() is called before which 
activates the tab to be closed.


More information about the rekonq mailing list