[PATCH] fix kwin passive grab leaks

Dirk Mueller mueller at kde.org
Thu Jan 1 16:07:14 GMT 2004


Hi, 

xrestop pointed out a massive ressource leak in kwin. it seems that on each 
kwin-relevant action (like switching focus, switching desktop), passive grabs 
are pooled, slowing it down and eating memory. 

Below is the patch. I'm not entirely sure why it is necessary, since 
XGrabButton manpage states that it would undo all passive grabs which were 
done before. Apparently it doesn't do that. Maybe its a X11 bug, only god 
knows. 

Reproducable on SuSE9 and confirmed to exist on Debian unstable by Simon. 

Please review. 


Dirk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: events.diff
Type: text/x-diff
Size: 928 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040101/2136c6d3/attachment.diff>


More information about the kde-core-devel mailing list