From: Zhiyi Zhang Subject: Re: [PATCH 1/5] dxgi: Implement dxgi_factory_MakeWindowAssociation(). Message-Id: <657aebe3-2072-b846-3f11-3b6a07cb7889@codeweavers.com> Date: Wed, 24 Apr 2019 10:45:08 +0800 In-Reply-To: References: <23f93edf-b58f-feef-4611-31d470281cb5@codeweavers.com> On 4/24/19 1:54 AM, Henri Verbeet wrote: > On Tue, 23 Apr 2019 at 17:29, Zhiyi Zhang wrote: >> dlls/dxgi/dxgi_private.h | 1 + >> dlls/dxgi/factory.c | 74 ++++++++++++++++++++++++++++++++++++++-- >> 2 files changed, 72 insertions(+), 3 deletions(-) >> > Would it make sense to adapt the existing wined3d_wndproc_table in > wined3d to handle DXGI window associations? > > I am sure it will make more sense. If we use wined3d_wndproc_table then it doesn't explain why set up a hook to ignore WM_SYSKEYDOWN breaks Alt+Enter, or why SendMessage(WM_SYSKEYDOWN) don't trigger Alt+Enter while PostMessage(WM_SYSKEYDOWN) does. It seems more accurate to set up a hook to intercept message before GetMessage returns. Another thing may be of interest. Application doesn't receive a WM_SYSKEYDOWN(Alt+Enter) when Alt+Enter is pressed.