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=63485icc-effect-5.14.5
parent
755aeffa27
commit
5e3b53660d
|
@ -324,7 +324,7 @@ void NextClient::paintEvent( QPaintEvent* )
|
||||||
void NextClient::mouseDoubleClickEvent( QMouseEvent * e )
|
void NextClient::mouseDoubleClickEvent( QMouseEvent * e )
|
||||||
{
|
{
|
||||||
if (titlebar->geometry().contains( e->pos() ) )
|
if (titlebar->geometry().contains( e->pos() ) )
|
||||||
setShade( !isShade() );
|
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
|
||||||
workspace()->requestFocus( this );
|
workspace()->requestFocus( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -499,7 +499,7 @@ void LaptopClient::windowWrapperShowEvent( QShowEvent* )
|
||||||
void LaptopClient::mouseDoubleClickEvent( QMouseEvent * e )
|
void LaptopClient::mouseDoubleClickEvent( QMouseEvent * e )
|
||||||
{
|
{
|
||||||
if (titlebar->geometry().contains( e->pos() ) )
|
if (titlebar->geometry().contains( e->pos() ) )
|
||||||
setShade( !isShade() );
|
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
|
||||||
workspace()->requestFocus( this );
|
workspace()->requestFocus( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -474,7 +474,7 @@ void ModernSys::windowWrapperShowEvent( QShowEvent* )
|
||||||
void ModernSys::mouseDoubleClickEvent( QMouseEvent * e )
|
void ModernSys::mouseDoubleClickEvent( QMouseEvent * e )
|
||||||
{
|
{
|
||||||
if (titlebar->geometry().contains( e->pos() ) )
|
if (titlebar->geometry().contains( e->pos() ) )
|
||||||
setShade( !isShade() );
|
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
|
||||||
workspace()->requestFocus( this );
|
workspace()->requestFocus( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -193,6 +193,13 @@ Manager::fakeMouseEvent(QMouseEvent * e, QWidget * w)
|
||||||
Client::event(&fake);
|
Client::event(&fake);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Manager::mouseDoubleClickEvent( QMouseEvent * )
|
||||||
|
{
|
||||||
|
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
|
||||||
|
workspace()->requestFocus( this );
|
||||||
|
}
|
||||||
|
|
||||||
} // End namespace
|
} // End namespace
|
||||||
|
|
||||||
// vim:ts=2:sw=2:tw=78
|
// vim:ts=2:sw=2:tw=78
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Manager : public Client
|
||||||
void setShade(bool);
|
void setShade(bool);
|
||||||
|
|
||||||
void fakeMouseEvent(QMouseEvent *, QWidget *);
|
void fakeMouseEvent(QMouseEvent *, QWidget *);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
void maximiseChanged(bool);
|
void maximiseChanged(bool);
|
||||||
|
@ -63,6 +63,7 @@ class Manager : public Client
|
||||||
void paintEvent(QPaintEvent *);
|
void paintEvent(QPaintEvent *);
|
||||||
void resizeEvent(QResizeEvent *);
|
void resizeEvent(QResizeEvent *);
|
||||||
void activateLayout();
|
void activateLayout();
|
||||||
|
void mouseDoubleClickEvent( QMouseEvent * );
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
|
|
||||||
|
|
|
@ -467,7 +467,7 @@ void SystemClient::windowWrapperShowEvent( QShowEvent* )
|
||||||
void SystemClient::mouseDoubleClickEvent( QMouseEvent * e )
|
void SystemClient::mouseDoubleClickEvent( QMouseEvent * e )
|
||||||
{
|
{
|
||||||
if (titlebar->geometry().contains( e->pos() ) )
|
if (titlebar->geometry().contains( e->pos() ) )
|
||||||
setShade( !isShade() );
|
workspace()->performWindowOperation( this, options->operationTitlebarDblClick() );
|
||||||
workspace()->requestFocus( this );
|
workspace()->requestFocus( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue