]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins/gtk2/gtk2_theme.cpp
* fixed the "always on top" bug
[vlc] / modules / gui / skins / gtk2 / gtk2_theme.cpp
index 37c54ceb3448e741590b84095c954de3e88cd369..8962e9d11d75264a4b3d5e8638599204048386f9 100644 (file)
@@ -2,7 +2,7 @@
  * gtk2_theme.cpp: GTK2 implementation of the Theme class
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: gtk2_theme.cpp,v 1.18 2003/04/19 11:16:17 asmax Exp $
+ * $Id: gtk2_theme.cpp,v 1.19 2003/04/20 16:16:34 asmax Exp $
  *
  * Authors: Cyril Deguet     <asmax@videolan.org>
  *
@@ -248,7 +248,7 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible,
     attr.height = 0;
     attr.window_type = GDK_WINDOW_TOPLEVEL;
     attr.wclass = GDK_INPUT_OUTPUT;
-    attr.override_redirect = TRUE;
+    attr.override_redirect = FALSE;
 
     gint mask = GDK_WA_NOREDIR;
 
@@ -260,6 +260,8 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible,
         return;
     }
 
+    gdk_window_set_decorations( gwnd, (GdkWMDecoration)0 );
+
     gdk_window_show( gwnd );
 
     WindowList.push_back( (Window *)new OSWindow( p_intf, gwnd, x, y, visible,