Commit 0f71ff28 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Get rid of the __wine_x11_managed property.

parent 49a5db38
......@@ -83,7 +83,6 @@ static Window user_time_window;
static const char foreign_window_prop[] = "__wine_x11_foreign_window";
static const char whole_window_prop[] = "__wine_x11_whole_window";
static const char clip_window_prop[] = "__wine_x11_clip_window";
static const char managed_prop[] = "__wine_x11_managed";
static CRITICAL_SECTION win_data_section;
static CRITICAL_SECTION_DEBUG critsect_debug =
......@@ -1135,7 +1134,6 @@ void make_window_embedded( struct x11drv_win_data *data )
}
data->embedded = TRUE;
data->managed = TRUE;
SetPropA( data->hwnd, managed_prop, (HANDLE)1 );
sync_window_style( data );
set_xembed_flags( data, data->mapped ? XEMBED_MAPPED : 0 );
}
......@@ -1353,7 +1351,6 @@ static void create_whole_window( struct x11drv_win_data *data )
{
TRACE( "making win %p/%lx managed\n", data->hwnd, data->whole_window );
data->managed = TRUE;
SetPropA( data->hwnd, managed_prop, (HANDLE)1 );
}
if ((win_rgn = CreateRectRgn( 0, 0, 0, 0 )) && GetWindowRgn( data->hwnd, win_rgn ) == ERROR)
......@@ -1577,7 +1574,6 @@ static BOOL create_desktop_win_data( Display *display, HWND hwnd )
if (!(data = alloc_win_data( display, hwnd ))) return FALSE;
data->whole_window = root_window;
data->managed = TRUE;
SetPropA( data->hwnd, managed_prop, (HANDLE)1 );
SetPropA( data->hwnd, whole_window_prop, (HANDLE)root_window );
set_initial_wm_hints( display, root_window );
release_win_data( data );
......@@ -1989,11 +1985,7 @@ void CDECL X11DRV_SetParent( HWND hwnd, HWND parent, HWND old_parent )
{
/* destroy the old X windows */
destroy_whole_window( data, FALSE );
if (data->managed)
{
data->managed = FALSE;
RemovePropA( data->hwnd, managed_prop );
}
}
}
else /* new top level window */
......@@ -2044,7 +2036,6 @@ void CDECL X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flag
unmap_window( hwnd );
if (!(data = get_win_data( hwnd ))) return;
data->managed = TRUE;
SetPropA( hwnd, managed_prop, (HANDLE)1 );
}
*visible_rect = *window_rect;
......
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