mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
winex11-XEMBED: Directly use win32u for user functions.
This commit is contained in:
parent
cc4ecadad0
commit
ccce92e0d3
@ -1,18 +1,18 @@
|
||||
From b628604e599f96eda85be0f8677419f8f591a7c6 Mon Sep 17 00:00:00 2001
|
||||
From 44c4620a48a2d15269a083d9c04bcf9e4ee77e58 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Fri, 22 Nov 2013 18:54:18 +0100
|
||||
Subject: winex11: Enable/disable windows when they are (un)mapped by foreign
|
||||
applications
|
||||
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 f79f40c23..04a4c3c94 100644
|
||||
index eb2f0c6626c..2f0606d1adc 100644
|
||||
--- a/dlls/winex11.drv/event.c
|
||||
+++ b/dlls/winex11.drv/event.c
|
||||
@@ -983,6 +983,7 @@ static BOOL X11DRV_Expose( HWND hwnd, XEvent *xev )
|
||||
@@ -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;
|
||||
@ -20,7 +20,7 @@ index f79f40c23..04a4c3c94 100644
|
||||
|
||||
if (event->xany.window == x11drv_thread_data()->clip_window) return TRUE;
|
||||
|
||||
@@ -994,7 +995,12 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
@@ -992,7 +993,12 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
if (hwndFocus && IsChild( hwnd, hwndFocus ))
|
||||
set_input_focus( data );
|
||||
}
|
||||
@ -29,11 +29,11 @@ index f79f40c23..04a4c3c94 100644
|
||||
release_win_data( data );
|
||||
+
|
||||
+ if (is_embedded)
|
||||
+ EnableWindow( hwnd, TRUE );
|
||||
+ NtUserEnableWindow( hwnd, TRUE );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -1004,6 +1010,17 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
@@ -1002,6 +1008,17 @@ static BOOL X11DRV_MapNotify( HWND hwnd, XEvent *event )
|
||||
*/
|
||||
static BOOL X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
|
||||
{
|
||||
@ -46,11 +46,11 @@ index f79f40c23..04a4c3c94 100644
|
||||
+ release_win_data( data );
|
||||
+
|
||||
+ if (is_embedded)
|
||||
+ EnableWindow( hwnd, FALSE );
|
||||
+ NtUserEnableWindow( hwnd, FALSE );
|
||||
+
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
--
|
||||
2.22.0
|
||||
2.35.1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user