mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
winex11-XEMBED: Remove patch.
This was for Pipelight. See the parent commit for justification on removal.
This commit is contained in:
parent
a051432871
commit
3dd9038110
@ -1,56 +0,0 @@
|
||||
From e1440086421942267ff1df00fdb11e724bd0119b Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Fri, 22 Nov 2013 18:54:18 +0100
|
||||
Subject: [PATCH] winex11: Enable/disable windows when they are (un)mapped by
|
||||
foreign applications
|
||||
|
||||
---
|
||||
dlls/winex11.drv/event.c | 17 +++++++++++++++++
|
||||
1 file changed, 17 insertions(+)
|
||||
|
||||
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
|
||||
index 147865e7af6..92504a248ca 100644
|
||||
--- a/dlls/winex11.drv/event.c
|
||||
+++ b/dlls/winex11.drv/event.c
|
||||
@@ -981,6 +981,7 @@ static BOOL X11DRV_Expose( HWND hwnd, XEvent *xev )
|
||||
static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
{
|
||||
struct x11drv_win_data *data;
|
||||
+ BOOL is_embedded;
|
||||
|
||||
if (event->xany.window == x11drv_thread_data()->clip_window) return TRUE;
|
||||
|
||||
@@ -992,7 +993,12 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
if (hwndFocus && NtUserIsChild( hwnd, hwndFocus ))
|
||||
set_input_focus( data );
|
||||
}
|
||||
+
|
||||
+ is_embedded = data->embedded;
|
||||
release_win_data( data );
|
||||
+
|
||||
+ if (is_embedded)
|
||||
+ NtUserEnableWindow( hwnd, TRUE );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -1002,6 +1008,17 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
*/
|
||||
static BOOL X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
|
||||
{
|
||||
+ struct x11drv_win_data *data;
|
||||
+ BOOL is_embedded;
|
||||
+
|
||||
+ if (!(data = get_win_data( hwnd ))) return FALSE;
|
||||
+
|
||||
+ is_embedded = data->embedded;
|
||||
+ release_win_data( data );
|
||||
+
|
||||
+ if (is_embedded)
|
||||
+ NtUserEnableWindow( hwnd, FALSE );
|
||||
+
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
--
|
||||
2.34.1
|
||||
|
@ -1 +0,0 @@
|
||||
Fixes: XEMBED support for embedding Wine windows inside Linux applications
|
Loading…
Reference in New Issue
Block a user