diff --git a/kwinbindings.cpp b/kwinbindings.cpp index e6a8f466f4..e8e3242e83 100644 --- a/kwinbindings.cpp +++ b/kwinbindings.cpp @@ -32,6 +32,7 @@ DEF( I18N_NOOP("Window Lower"), 0, 0, slotWindowLower() ); DEF( I18N_NOOP("Window On All Desktops"), 0, 0, slotWindowOnAllDesktops() ); DEF( I18N_NOOP("Window Fullscreen"), 0, 0, slotWindowFullScreen() ); + DEF( I18N_NOOP("Window No Border"), 0, 0, slotWindowNoBorder() ); DEF( I18N_NOOP("Window Above Other Windows"), 0, 0, slotWindowAbove() ); DEF( I18N_NOOP("Window Below Other Windows"), 0, 0, slotWindowBelow() ); DEF( I18N_NOOP("Toggle Window Raise/Lower"), 0, 0, slotWindowRaiseOrLower() ); diff --git a/useractions.cpp b/useractions.cpp index 6cce645b58..e5f1a025e1 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -640,6 +640,12 @@ void Workspace::slotWindowFullScreen() performWindowOperation( active_client, Options::FullScreenOp ); } +void Workspace::slotWindowNoBorder() + { + if( active_client ) + performWindowOperation( active_client, Options::NoBorderOp ); + } + void Workspace::slotWindowAbove() { if( active_client ) diff --git a/workspace.h b/workspace.h index 8a38bec915..8450f6c8b2 100644 --- a/workspace.h +++ b/workspace.h @@ -314,6 +314,7 @@ class Workspace : public QObject, virtual public KWinInterface, public KDecorati void slotWindowBelow(); void slotWindowOnAllDesktops(); void slotWindowFullScreen(); + void slotWindowNoBorder(); void slotWindowToNextDesktop(); void slotWindowToPreviousDesktop();