keyboard shortcuts for always-on-top & on-all-desktops

(#49083).

svn path=/trunk/kdebase/kwin/; revision=194462
This commit is contained in:
Luboš Luňák 2002-12-17 16:09:08 +00:00
parent f8941c9e5a
commit 336667733e
3 changed files with 16 additions and 0 deletions

View file

@ -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") );

View file

@ -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
*/ */

View file

@ -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();