Working kwin from Matthias E. :-)

svn path=/trunk/kdebase/kwin/; revision=30385
This commit is contained in:
Stefan Taferner 1999-10-09 09:55:16 +00:00
parent 75f321c4c0
commit df7fc2905e
3 changed files with 13 additions and 2 deletions

View file

@ -905,7 +905,7 @@ void Client::mouseMoveEvent( QMouseEvent * e)
XGrabServer( qt_xdisplay() );
if ( isMove() && options->moveMode == Options::HalfTransparent ) {
imgClient = new QImage( QPixmap::grabWidget( this ).convertToImage() );
imgClient = 0; //new QImage( QPixmap::grabWidget( this ).convertToImage() );
// TODO SLOW!!!
pmBackground = new QPixmap( QPixmap::grabWindow( qt_xrootwin() ));
imgBackground = new QImage( pmBackground->convertToImage() );

7
options.cpp Normal file
View file

@ -0,0 +1,7 @@
#include "options.h"
Options::Options(){
focusPolicy = ClickToFocus;
resizeMode = Opaque;
moveMode = Transparent;//HalfTransparent;
}

View file

@ -27,6 +27,10 @@ static Client* clientFactory( Workspace *ws, WId w )
ws->setDesktopClient( c );
return c;
}
if ( s == "Kicker" ) {
Client * c = new NoBorderClient( ws, w);
return c;
}
return new StdClient( ws, w );
}