Comment 5 for bug 460338

Revision history for this message
John Schember (user-none) wrote :

I didn't miss it. I've been at work.

WM_DELETE_WINDOW is passed to the embedded window if you do not register it, even if you re-implement the closeEvent; the embedded window will close. If you register it then you have to look for it as a client message in the X11EventFilter because the closeEvent will never be called since the WM_DELETE_WINDOW has essentially been overridden.

There are two issues that re-parenting introduces that I'm currently working though that are keeping me from making a release.

Sending _NET_CLOSE_WINDOW to the embedded window will cause it to close completely. An application like gedit that asks to save before closing will not ask, it just closes. I need to look to see about other ways to ask a window to close.

The other issue is drag and drop becomes a bit broken. Drag works correctly but drop does not. The QX11EmbedContainer should be transparently proxying the XDnD messages to the embedded window and it appears to but there are issues. Nautilus doesn't always register that the item can be dropped. the key combos that change between cut and copy do not work. Rox does not work at all with dropping. This one is harder to solve because it looks like Qt simply uses Xlibs XDnD Proxy calls and doesn't do anything itself.