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

View file

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