[PATCH 1/14] winex11.drv: Make X11DRV_window_to_X_rect use hwnd
instead of win_data
Alexandre Julliard
julliard at winehq.org
Mon Jan 22 06:31:06 CST 2007
Pierre d'Herbemont <pdherbemont at free.fr> writes:
> -void X11DRV_window_to_X_rect( struct x11drv_win_data *data, RECT *rect )
> +void X11DRV_window_to_X_rect( HWND hwnd, RECT *rect )
> {
> RECT rc;
>
> - if (!data->managed) return;
> + if (!is_window_managed(hwnd)) return;
> if (IsRectEmpty( rect )) return;
This won't work, is_window_managed() will re-evaluate the managed flag
so it will give wrong results if the window style has changed.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list