WABA: Fixed #8656 kwin titlebar: doubleclick does not maximize

if (titlebar->geometry().contains( e->pos() ) )
-        setShade( !isShade() );
+       workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
     workspace()->requestFocus( this );

svn path=/trunk/kdebase/kwin/; revision=63485
This commit is contained in:
Waldo Bastian 2000-09-11 03:34:01 +00:00
parent 755aeffa27
commit 5e3b53660d
6 changed files with 13 additions and 5 deletions

View file

@ -324,7 +324,7 @@ void NextClient::paintEvent( QPaintEvent* )
void NextClient::mouseDoubleClickEvent( QMouseEvent * e )
{
if (titlebar->geometry().contains( e->pos() ) )
setShade( !isShade() );
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
workspace()->requestFocus( this );
}

View file

@ -499,7 +499,7 @@ void LaptopClient::windowWrapperShowEvent( QShowEvent* )
void LaptopClient::mouseDoubleClickEvent( QMouseEvent * e )
{
if (titlebar->geometry().contains( e->pos() ) )
setShade( !isShade() );
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
workspace()->requestFocus( this );
}

View file

@ -474,7 +474,7 @@ void ModernSys::windowWrapperShowEvent( QShowEvent* )
void ModernSys::mouseDoubleClickEvent( QMouseEvent * e )
{
if (titlebar->geometry().contains( e->pos() ) )
setShade( !isShade() );
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
workspace()->requestFocus( this );
}

View file

@ -193,6 +193,13 @@ Manager::fakeMouseEvent(QMouseEvent * e, QWidget * w)
Client::event(&fake);
}
void
Manager::mouseDoubleClickEvent( QMouseEvent * )
{
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
workspace()->requestFocus( this );
}
} // End namespace
// vim:ts=2:sw=2:tw=78

View file

@ -43,7 +43,7 @@ class Manager : public Client
void setShade(bool);
void fakeMouseEvent(QMouseEvent *, QWidget *);
signals:
void maximiseChanged(bool);
@ -63,6 +63,7 @@ class Manager : public Client
void paintEvent(QPaintEvent *);
void resizeEvent(QResizeEvent *);
void activateLayout();
void mouseDoubleClickEvent( QMouseEvent * );
protected slots:

View file

@ -467,7 +467,7 @@ void SystemClient::windowWrapperShowEvent( QShowEvent* )
void SystemClient::mouseDoubleClickEvent( QMouseEvent * e )
{
if (titlebar->geometry().contains( e->pos() ) )
setShade( !isShade() );
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
workspace()->requestFocus( this );
}