blast!
svn path=/trunk/KDE/kdebase/workspace/; revision=1186892
This commit is contained in:
parent
647eaa8afb
commit
4c6bd603da
1 changed files with 17 additions and 5 deletions
22
tabbox.cpp
22
tabbox.cpp
|
@ -181,6 +181,18 @@ TabBoxClientList TabBoxHandlerImpl::stackingOrder() const
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TabBoxHandlerImpl::raiseClient( TabBoxClient* c ) const
|
||||||
|
{
|
||||||
|
Workspace::self()->raiseClient( static_cast<TabBoxClientImpl*>(c)->client() );
|
||||||
|
}
|
||||||
|
|
||||||
|
void TabBoxHandlerImpl::restack( TabBoxClient *c, TabBoxClient *under )
|
||||||
|
{
|
||||||
|
Workspace::self()->restack( static_cast<TabBoxClientImpl*>(c)->client(),
|
||||||
|
static_cast<TabBoxClientImpl*>(under)->client() );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TabBoxClient* TabBoxHandlerImpl::desktopClient() const
|
TabBoxClient* TabBoxHandlerImpl::desktopClient() const
|
||||||
{
|
{
|
||||||
foreach( const Client* client, Workspace::self()->stackingOrder() )
|
foreach( const Client* client, Workspace::self()->stackingOrder() )
|
||||||
|
@ -480,7 +492,7 @@ void TabBox::show()
|
||||||
/*!
|
/*!
|
||||||
Notify effects that the tab box is being hidden.
|
Notify effects that the tab box is being hidden.
|
||||||
*/
|
*/
|
||||||
void TabBox::hide()
|
void TabBox::hide(bool abort)
|
||||||
{
|
{
|
||||||
delayedShowTimer.stop();
|
delayedShowTimer.stop();
|
||||||
if( m_isShown )
|
if( m_isShown )
|
||||||
|
@ -493,7 +505,7 @@ void TabBox::hide()
|
||||||
if( isDisplayed())
|
if( isDisplayed())
|
||||||
kDebug( 1212 ) << "Tab box was not properly closed by an effect";
|
kDebug( 1212 ) << "Tab box was not properly closed by an effect";
|
||||||
m_index = QModelIndex();
|
m_index = QModelIndex();
|
||||||
m_tabBox->hide();
|
m_tabBox->hide( abort );
|
||||||
QApplication::syncX();
|
QApplication::syncX();
|
||||||
XEvent otherEvent;
|
XEvent otherEvent;
|
||||||
while (XCheckTypedEvent (display(), EnterNotify, &otherEvent ) )
|
while (XCheckTypedEvent (display(), EnterNotify, &otherEvent ) )
|
||||||
|
@ -1096,7 +1108,7 @@ void Workspace::tabBoxKeyPress( int keyQt )
|
||||||
if ( ((keyQt & ~Qt::KeyboardModifierMask) == Qt::Key_Escape)
|
if ( ((keyQt & ~Qt::KeyboardModifierMask) == Qt::Key_Escape)
|
||||||
&& !(forward || backward) )
|
&& !(forward || backward) )
|
||||||
{ // if Escape is part of the shortcut, don't cancel
|
{ // if Escape is part of the shortcut, don't cancel
|
||||||
closeTabBox();
|
closeTabBox( true );
|
||||||
}
|
}
|
||||||
else if( !(forward || backward) )
|
else if( !(forward || backward) )
|
||||||
{
|
{
|
||||||
|
@ -1118,10 +1130,10 @@ void Workspace::unrefTabBox()
|
||||||
tab_box->unrefDisplay();
|
tab_box->unrefDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::closeTabBox()
|
void Workspace::closeTabBox( bool abort )
|
||||||
{
|
{
|
||||||
removeTabBoxGrab();
|
removeTabBoxGrab();
|
||||||
tab_box->hide();
|
tab_box->hide( abort );
|
||||||
modalActionsSwitch( true );
|
modalActionsSwitch( true );
|
||||||
tab_grab = false;
|
tab_grab = false;
|
||||||
control_grab = false;
|
control_grab = false;
|
||||||
|
|
Loading…
Reference in a new issue