adding missing raise and lower keybindings

svn path=/trunk/kdebase/kwin/; revision=59304
icc-effect-5.14.5
Matthias Ettrich 2000-07-30 16:15:17 +00:00
parent 13aebff097
commit 5d7ca8f2ee
4 changed files with 34 additions and 10 deletions

View File

@ -18,6 +18,8 @@
keys->insertItem(i18n("Window shade"),"Window shade", "");
keys->insertItem(i18n("Window move"),"Window move", "");
keys->insertItem(i18n("Window resize"),"Window resize", "");
keys->insertItem(i18n("Window raise"),"Window raise", "");
keys->insertItem(i18n("Window lower"),"Window lower", "");
keys->insertItem(i18n("Mouse emulation"),"Mouse emulation", "F12");

View File

@ -23,11 +23,11 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
// #define INT8 _X11INT8
// #define INT32 _X11INT32
#define INT8 _X11INT8
#define INT32 _X11INT32
#include <X11/Xproto.h>
// #undef INT8
// #undef INT32
#undef INT8
#undef INT32
#include <kcmdlineargs.h>
#include <kaboutdata.h>
@ -46,7 +46,7 @@ static void crashHandler(int)
{
KCrash::setCrashHandler(0); // Exit on next crash.
delete client; client = 0; // Unregister with dcop.
// system("kwin&"); // Try to restart
system("kwin&"); // Try to restart
}
int x11ErrorHandler(Display *d, XErrorEvent *e){
@ -179,7 +179,7 @@ void Application::saveState( QSessionManager& sm )
sm.requestPhase2();
return;
}
workspaces.first()->storeSession( kapp->sessionConfig() );
kapp->sessionConfig()->sync();
}
@ -210,7 +210,7 @@ int main( int argc, char * argv[] )
signal(SIGHUP, SIG_IGN);
Application a;
// KCrash::setCrashHandler(crashHandler); // Try to restart on crash
KCrash::setCrashHandler(crashHandler); // Try to restart on crash
fcntl(ConnectionNumber(qt_xdisplay()), F_SETFD, 1);
client = a.dcopClient();

View File

@ -1957,6 +1957,8 @@ void Workspace::createKeybindings(){
keys->connectItem( "Window shade", this, SLOT( slotWindowShade() ) );
keys->connectItem( "Window move", this, SLOT( slotWindowMove() ) );
keys->connectItem( "Window resize", this, SLOT( slotWindowResize() ) );
keys->connectItem( "Window raise", this, SLOT( slotWindowRaise() ) );
keys->connectItem( "Window lower", this, SLOT( slotWindowLower() ) );
keys->connectItem( "Mouse emulation", this, SLOT( slotMouseEmulation() ) );
@ -2047,6 +2049,24 @@ void Workspace::slotWindowShade()
performWindowOperation( popup_client, Options::ShadeOp );
}
/*!
Raises the popup client
*/
void Workspace::slotWindowRaise()
{
if ( popup_client )
raiseClient( popup_client );
}
/*!
Lowers the popup client
*/
void Workspace::slotWindowLower()
{
if ( popup_client )
lowerClient( popup_client );
}
/*!
Invokes keyboard mouse emulation

View File

@ -175,9 +175,9 @@ public:
void unclutterDesktop();
void reconfigure();
void doNotManage(QString);
QString desktopName( int desk );
bool isNotManaged( const QString& title );
public slots:
@ -199,6 +199,8 @@ public slots:
void slotWindowMaximizeHorizontal();
void slotWindowIconify();
void slotWindowShade();
void slotWindowRaise();
void slotWindowLower();
void slotWindowOperations();
void slotWindowClose();
@ -312,7 +314,7 @@ private:
QWidget* supportWindow;
QRect area;
// swallowing
QStringList doNotManageList;
};