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
icc-effect-5.14.5
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 );
}