Commit 380d793a authored by Cyril Deguet's avatar Cyril Deguet

* fixed the "always on top" bug

parent 3fd83d6a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_theme.cpp: GTK2 implementation of the Theme class * gtk2_theme.cpp: GTK2 implementation of the Theme class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -248,7 +248,7 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible, ...@@ -248,7 +248,7 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible,
attr.height = 0; attr.height = 0;
attr.window_type = GDK_WINDOW_TOPLEVEL; attr.window_type = GDK_WINDOW_TOPLEVEL;
attr.wclass = GDK_INPUT_OUTPUT; attr.wclass = GDK_INPUT_OUTPUT;
attr.override_redirect = TRUE; attr.override_redirect = FALSE;
gint mask = GDK_WA_NOREDIR; gint mask = GDK_WA_NOREDIR;
...@@ -260,6 +260,8 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible, ...@@ -260,6 +260,8 @@ void GTK2Theme::AddWindow( string name, int x, int y, bool visible,
return; return;
} }
gdk_window_set_decorations( gwnd, (GdkWMDecoration)0 );
gdk_window_show( gwnd ); gdk_window_show( gwnd );
WindowList.push_back( (Window *)new OSWindow( p_intf, gwnd, x, y, visible, WindowList.push_back( (Window *)new OSWindow( p_intf, gwnd, x, y, visible,
......
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