[vlc-devel] [PATCH] Mozilla plugin consumes X connections

Rémi Denis-Courmont remi at remlab.net
Fri Nov 19 14:20:16 CET 2010

Le vendredi 19 novembre 2010 15:03:56 Dur Zagott, vous avez écrit :
> Mozilla plugin destroys window given to it by Firefox after use. This
> prevents xprop from keep the connection to X server open when it is not
> needed.

That would seem like a bug. Either xdg-screensaver is not exiting when it 
should, or VLC fails to send the 'resume' command to xdg-screensaver.

> It seems that when the VLC plugin starts Firefox gives it a window to 
> render in. The xdg-screensaver uses this window to kick off xprop   which
> prevents the screensaver from appearing.However, when the the VLC plugin
> is no longer needed (ie, user navigates  away from page) the window
> Firefox gave VLC is never destroyed.  Therefore xprop is still using the
> window and the connection to X persists. The patch I've attached will
> destroy the window given to Firefox when the plugin is no longer needed.

I don't know the NPAPI much, but I doubt that the plugin is allowed or 
expected to destroy one of the browser's window, or is it?

Rémi Denis-Courmont

More information about the vlc-devel mailing list