2016-08-25 14:43:12 -07:00
|
|
|
From e7e33093dfa9f46069dbc7fa53dcdb2330cbdc57 Mon Sep 17 00:00:00 2001
|
2013-11-21 12:33:37 -08:00
|
|
|
From: Sebastian Lackner <sebastian@fds-team.de>
|
2013-11-22 10:54:41 -08:00
|
|
|
Date: Fri, 22 Nov 2013 18:54:18 +0100
|
2013-11-22 11:06:28 -08:00
|
|
|
Subject: winex11: Enable/disable windows when they are (un)mapped by foreign
|
2013-11-21 12:33:37 -08:00
|
|
|
applications
|
|
|
|
|
|
|
|
---
|
2016-08-25 14:43:12 -07:00
|
|
|
dlls/winex11.drv/event.c | 17 +++++++++++++++++
|
2013-11-21 12:33:37 -08:00
|
|
|
1 file changed, 17 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
|
2016-08-25 14:43:12 -07:00
|
|
|
index d81ff2e..c8ce8ad 100644
|
2013-11-21 12:33:37 -08:00
|
|
|
--- a/dlls/winex11.drv/event.c
|
|
|
|
+++ b/dlls/winex11.drv/event.c
|
2016-08-25 14:43:12 -07:00
|
|
|
@@ -929,6 +929,7 @@ static BOOL X11DRV_Expose( HWND hwnd, XEvent *xev )
|
|
|
|
static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
2013-11-21 12:33:37 -08:00
|
|
|
{
|
|
|
|
struct x11drv_win_data *data;
|
|
|
|
+ BOOL is_embedded;
|
|
|
|
|
|
|
|
if (event->xany.window == x11drv_thread_data()->clip_window)
|
|
|
|
{
|
2016-08-25 14:43:12 -07:00
|
|
|
@@ -943,7 +944,12 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
2013-11-21 12:33:37 -08:00
|
|
|
if (hwndFocus && IsChild( hwnd, hwndFocus ))
|
2013-11-22 10:54:41 -08:00
|
|
|
set_input_focus( data );
|
2013-11-21 12:33:37 -08:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ is_embedded = data->embedded;
|
|
|
|
release_win_data( data );
|
|
|
|
+
|
|
|
|
+ if (is_embedded)
|
|
|
|
+ EnableWindow( hwnd, TRUE );
|
2016-08-25 14:43:12 -07:00
|
|
|
return TRUE;
|
2013-11-21 12:33:37 -08:00
|
|
|
}
|
|
|
|
|
2016-08-25 14:43:12 -07:00
|
|
|
@@ -953,8 +959,19 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
2013-11-21 12:33:37 -08:00
|
|
|
*/
|
2016-08-25 14:43:12 -07:00
|
|
|
static BOOL X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
|
2013-11-21 12:33:37 -08:00
|
|
|
{
|
|
|
|
+ struct x11drv_win_data *data;
|
|
|
|
+ BOOL is_embedded;
|
|
|
|
+
|
2013-11-29 17:30:37 -08:00
|
|
|
if (event->xany.window == x11drv_thread_data()->clip_window)
|
|
|
|
clipping_cursor = FALSE;
|
2013-11-21 12:33:37 -08:00
|
|
|
+
|
2016-08-25 14:43:12 -07:00
|
|
|
+ if (!(data = get_win_data( hwnd ))) return FALSE;
|
2013-11-21 12:33:37 -08:00
|
|
|
+
|
|
|
|
+ is_embedded = data->embedded;
|
|
|
|
+ release_win_data( data );
|
2013-11-22 10:54:41 -08:00
|
|
|
+
|
2013-11-21 12:33:37 -08:00
|
|
|
+ if (is_embedded)
|
|
|
|
+ EnableWindow( hwnd, FALSE );
|
2016-08-25 14:43:12 -07:00
|
|
|
return TRUE;
|
2013-11-21 12:33:37 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2016-08-25 14:43:12 -07:00
|
|
|
2.9.0
|
2013-11-21 12:33:37 -08:00
|
|
|
|