keyboard shortcuts for always-on-top & on-all-desktops
(#49083). svn path=/trunk/kdebase/kwin/; revision=194462
This commit is contained in:
parent
f8941c9e5a
commit
336667733e
3 changed files with 16 additions and 0 deletions
|
@ -30,6 +30,8 @@
|
||||||
DEF( I18N_NOOP("Window Resize"), 0, 0, slotWindowResize() );
|
DEF( I18N_NOOP("Window Resize"), 0, 0, slotWindowResize() );
|
||||||
DEF( I18N_NOOP("Window Raise"), 0, 0, slotWindowRaise() );
|
DEF( I18N_NOOP("Window Raise"), 0, 0, slotWindowRaise() );
|
||||||
DEF( I18N_NOOP("Window Lower"), 0, 0, slotWindowLower() );
|
DEF( I18N_NOOP("Window Lower"), 0, 0, slotWindowLower() );
|
||||||
|
DEF( I18N_NOOP("Window Sticky"), 0, 0, slotWindowSticky() );
|
||||||
|
DEF( I18N_NOOP("Window Stays On Top"), 0, 0, slotWindowStaysOnTop() );
|
||||||
DEF( I18N_NOOP("Toggle Window Raise/Lower"), 0, 0, slotWindowRaiseOrLower() );
|
DEF( I18N_NOOP("Toggle Window Raise/Lower"), 0, 0, slotWindowRaiseOrLower() );
|
||||||
|
|
||||||
keys->insert( "Group:Window Desktop", i18n("Window & Desktop") );
|
keys->insert( "Group:Window Desktop", i18n("Window & Desktop") );
|
||||||
|
|
|
@ -2823,6 +2823,18 @@ void Workspace::slotWindowRaiseOrLower()
|
||||||
raiseOrLowerClient( active_client );
|
raiseOrLowerClient( active_client );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Workspace::slotWindowSticky()
|
||||||
|
{
|
||||||
|
if( active_client )
|
||||||
|
active_client->toggleSticky();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Workspace::slotWindowStaysOnTop()
|
||||||
|
{
|
||||||
|
if( active_client )
|
||||||
|
performWindowOperation( active_client, Options::StaysOnTopOp );
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Move window to next desktop
|
Move window to next desktop
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -304,6 +304,8 @@ public slots:
|
||||||
void slotWindowClose();
|
void slotWindowClose();
|
||||||
void slotWindowMove();
|
void slotWindowMove();
|
||||||
void slotWindowResize();
|
void slotWindowResize();
|
||||||
|
void slotWindowStaysOnTop();
|
||||||
|
void slotWindowSticky();
|
||||||
|
|
||||||
void slotWindowToNextDesktop();
|
void slotWindowToNextDesktop();
|
||||||
void slotWindowToPreviousDesktop();
|
void slotWindowToPreviousDesktop();
|
||||||
|
|
Loading…
Reference in a new issue