[2/2] winex11: Enable/disable windows when they are (un)mapped by foreign applications
Sebastian Lackner
sebastian at fds-team.de
Wed Nov 13 11:17:11 CST 2013
---
dlls/winex11.drv/event.c | 9 +++++++++
1 file changed, 9 insertions(+)
-------------- next part --------------
>From b41f0e7d5565b14a086062345c5afedd4bc1fb68 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian at fds-team.de>
Date: Mon, 28 Oct 2013 00:39:17 +0100
Subject: winex11: Enable/disable windows when they are (un)mapped by foreign
applications
---
dlls/winex11.drv/event.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index abe8ecd..6fa4701 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -929,6 +929,7 @@ static void X11DRV_Expose( HWND hwnd, XEvent *xev )
static void X11DRV_MapNotify( HWND hwnd, XEvent *event )
{
struct x11drv_win_data *data;
+ BOOL is_embedded;
if (event->xany.window == x11drv_thread_data()->clip_window)
{
@@ -943,7 +944,12 @@ static void X11DRV_MapNotify( HWND hwnd, XEvent *event )
if (hwndFocus && IsChild( hwnd, hwndFocus ))
set_input_focus( hwnd );
}
+
+ is_embedded = data->embedded;
release_win_data( data );
+
+ if (is_embedded)
+ EnableWindow( hwnd, TRUE );
}
@@ -953,6 +959,9 @@ static void X11DRV_MapNotify( HWND hwnd, XEvent *event )
static void X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
{
if (event->xany.window == x11drv_thread_data()->clip_window) clipping_cursor = 0;
+
+ if (is_window_embedded( hwnd ))
+ EnableWindow( hwnd, FALSE );
}
--
1.7.9.5
More information about the wine-patches
mailing list