diff --git a/patches/04-XEMBED/0002-winex11-Enable-disable-windows-when-they-are-un-mapped.patch b/patches/04-XEMBED/0002-winex11-Enable-disable-windows-when-they-are-un-mapped.patch index bda51d75..0f4f4d6c 100644 --- a/patches/04-XEMBED/0002-winex11-Enable-disable-windows-when-they-are-un-mapped.patch +++ b/patches/04-XEMBED/0002-winex11-Enable-disable-windows-when-they-are-un-mapped.patch @@ -33,14 +33,15 @@ index 767c003..f39b922 100644 } -@@ -945,7 +951,18 @@ static void X11DRV_MapNotify( HWND hwnd, XEvent *event ) +@@ -945,8 +951,19 @@ static void X11DRV_MapNotify( HWND hwnd, XEvent *event ) */ static void X11DRV_UnmapNotify( HWND hwnd, XEvent *event ) { + struct x11drv_win_data *data; + BOOL is_embedded; + - if (event->xany.window == x11drv_thread_data()->clip_window) clipping_cursor = 0; + if (event->xany.window == x11drv_thread_data()->clip_window) + clipping_cursor = FALSE; + + if (!(data = get_win_data( hwnd ))) return; +