make it work again

svn path=/trunk/kdebase/kwin/; revision=32597
This commit is contained in:
Matthias Ettrich 1999-11-02 15:17:15 +00:00
parent b62982b6d1
commit 5b3d19e42d
2 changed files with 21 additions and 18 deletions

View file

@ -263,25 +263,25 @@ WindowWrapper::WindowWrapper( WId w, Client *parent, const char* name)
XReparentWindow( qt_xdisplay(), win, winId(), 0, 0 ); XReparentWindow( qt_xdisplay(), win, winId(), 0, 0 );
// // overwrite Qt-defaults because we need SubstructureNotifyMask // // overwrite Qt-defaults because we need SubstructureNotifyMask
// XSelectInput( qt_xdisplay(), winId(), XSelectInput( qt_xdisplay(), winId(),
// KeyPressMask | KeyReleaseMask | KeyPressMask | KeyReleaseMask |
// ButtonPressMask | ButtonReleaseMask | ButtonPressMask | ButtonReleaseMask |
// KeymapStateMask | KeymapStateMask |
// ButtonMotionMask | ButtonMotionMask |
// PointerMotionMask | // need this, too! PointerMotionMask | // need this, too!
// EnterWindowMask | LeaveWindowMask | EnterWindowMask | LeaveWindowMask |
// FocusChangeMask | FocusChangeMask |
// ExposureMask | ExposureMask |
// StructureNotifyMask | StructureNotifyMask |
// SubstructureRedirectMask | SubstructureRedirectMask |
// SubstructureNotifyMask SubstructureNotifyMask
// ); );
XSelectInput( qt_xdisplay(), w, XSelectInput( qt_xdisplay(), w,
FocusChangeMask | FocusChangeMask |
PropertyChangeMask | PropertyChangeMask |
StructureNotifyMask StructureNotifyMask
); );
// install a passive grab to catch mouse button events // install a passive grab to catch mouse button events
@ -343,6 +343,7 @@ void WindowWrapper::releaseWindow()
((Client*)parentWidget())->workspace()->rootWin(), ((Client*)parentWidget())->workspace()->rootWin(),
parentWidget()->x(), parentWidget()->x(),
parentWidget()->y() ); parentWidget()->y() );
XRemoveFromSaveSet(qt_xdisplay(), win ); XRemoveFromSaveSet(qt_xdisplay(), win );
invalidateWindow(); invalidateWindow();
} }

View file

@ -131,7 +131,9 @@ void Workspace::init()
Workspace::~Workspace() Workspace::~Workspace()
{ {
for ( ClientList::ConstIterator it = clients.begin(); it != clients.end(); ++it) { for ( ClientList::ConstIterator it = clients.begin(); it != clients.end(); ++it) {
WId win = (*it)->window();
delete (*it); delete (*it);
XMapWindow( qt_xdisplay(), win );
} }
delete tab_box; delete tab_box;
delete popup; delete popup;