Commit 95b526ce authored by Cheng Sun's avatar Cheng Sun Committed by Jean-Baptiste Kempf

GTK: Actually destroy our X window when we are told to

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent c752b170
......@@ -441,6 +441,11 @@ bool VlcPluginGtk::resize_windows()
bool VlcPluginGtk::destroy_windows()
Display *display = get_display();
/* destroy x window */
XDestroyWindow(display, video_xwindow);
/* free colors */
Colormap colormap = DefaultColormap(display, DefaultScreen(display));
XFreeColors(display, colormap, &bg_color.pixel, 1, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment