Added window raise-or-lower
svn path=/trunk/kdebase/kwin/; revision=89959
This commit is contained in:
parent
b90a69abc9
commit
2b0e89325f
3 changed files with 28 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
|||
keys->insertItem(i18n("Window resize"),"Window resize", "");
|
||||
keys->insertItem(i18n("Window raise"),"Window raise", "");
|
||||
keys->insertItem(i18n("Window lower"),"Window lower", "");
|
||||
keys->insertItem(i18n("Window raise-or-lower"), "Toggle raise and lower", "");
|
||||
|
||||
keys->insertItem(i18n("Walk through desktops"),"Walk through desktops", "CTRL+Tab");
|
||||
keys->insertItem(i18n("Walk back through desktops"),"Walk back through desktops", "SHIFT+CTRL+Tab");
|
||||
|
@ -43,3 +44,4 @@
|
|||
keys->insertItem(i18n("Logout"),"Logout", "CTRL+ALT+Delete");
|
||||
|
||||
keys->insertItem(i18n("Kill Window"),"Kill Window", "CTRL+ALT+Escape");
|
||||
|
||||
|
|
|
@ -1904,6 +1904,20 @@ void Workspace::raiseClient( Client* c )
|
|||
|
||||
}
|
||||
|
||||
void Workspace::raiseOrLowerClient( Client *c)
|
||||
{
|
||||
if (!c) return;
|
||||
|
||||
if (c == most_recently_raised)
|
||||
{
|
||||
lowerClient(c);
|
||||
}
|
||||
else
|
||||
{
|
||||
raiseClient(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
Private auxiliary function used in raiseClient()
|
||||
|
@ -2282,6 +2296,7 @@ void Workspace::createKeybindings(){
|
|||
keys->connectItem( "Window resize", this, SLOT( slotWindowResize() ) );
|
||||
keys->connectItem( "Window raise", this, SLOT( slotWindowRaise() ) );
|
||||
keys->connectItem( "Window lower", this, SLOT( slotWindowLower() ) );
|
||||
keys->connectItem( "Toggle raise and lower", this, SLOT( slotWindowRaiseOrLower() ) );
|
||||
|
||||
keys->connectItem( "Walk through desktops", this, SLOT( slotWalkThroughDesktops()));
|
||||
keys->connectItem( "Walk back through desktops", this, SLOT( slotWalkBackThroughDesktops()));
|
||||
|
@ -2453,6 +2468,15 @@ void Workspace::slotWindowLower()
|
|||
lowerClient( popup_client );
|
||||
}
|
||||
|
||||
/*!
|
||||
Does a toggle-raise-and-lower on the popup client;
|
||||
*/
|
||||
void Workspace::slotWindowRaiseOrLower()
|
||||
{
|
||||
if ( popup_client )
|
||||
raiseOrLowerClient( popup_client );
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
Invokes keyboard mouse emulation
|
||||
|
|
|
@ -130,6 +130,7 @@ public:
|
|||
QPoint adjustClientPosition( Client* c, QPoint pos );
|
||||
void raiseClient( Client* c );
|
||||
void lowerClient( Client* c );
|
||||
void raiseOrLowerClient( Client * );
|
||||
|
||||
void clientHidden( Client* );
|
||||
|
||||
|
@ -227,6 +228,7 @@ public slots:
|
|||
void slotWindowShade();
|
||||
void slotWindowRaise();
|
||||
void slotWindowLower();
|
||||
void slotWindowRaiseOrLower();
|
||||
|
||||
void slotWalkThroughDesktops();
|
||||
void slotWalkBackThroughDesktops();
|
||||
|
|
Loading…
Reference in a new issue