Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2021-02-12 21:39:33 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-02-12 21:40:20 +0300
commitba03f7f0b1d0c40acf997749949a0b0efe19e6d0 (patch)
treea9e6f89075bc6e0fac143b88e00ed91cdba69df3
parent97072e01354f9c6e5775079a8c7e51993059aa2a (diff)
Fix T85562: Remove Win32 RIM_INPUTSINK
Removal of Win32 code that allows background windows to receive raw input. Differential Revision: https://developer.blender.org/D10408 Reviewed by Brecht Van Lommel
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp6
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.cpp10
2 files changed, 0 insertions, 16 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index b71b6b9e170..fb53357bb24 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1511,12 +1511,6 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
// Keyboard events, processed
////////////////////////////////////////////////////////////////////////
case WM_INPUT: {
- // check WM_INPUT from input sink when ghost window is not in the foreground
- if (wParam == RIM_INPUTSINK) {
- if (GetFocus() != hwnd) // WM_INPUT message not for this window
- return 0;
- } // else wParam == RIM_INPUT
-
RAWINPUT raw;
RAWINPUT *raw_ptr = &raw;
UINT rawSize = sizeof(RAWINPUT);
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index 18aa19c0863..377eb61874d 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -220,16 +220,6 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system,
}
}
- if (parentwindow && !dialog) {
- RAWINPUTDEVICE device = {0};
- device.usUsagePage = 0x01; /* usUsagePage & usUsage for keyboard*/
- device.usUsage = 0x06; /* http://msdn.microsoft.com/en-us/windows/hardware/gg487473.aspx */
- device.dwFlags |=
- RIDEV_INPUTSINK; // makes WM_INPUT is visible for ghost when has parent window
- device.hwndTarget = m_hWnd;
- RegisterRawInputDevices(&device, 1, sizeof(device));
- }
-
// Initialize Windows Ink
if (m_user32) {
m_fpGetPointerInfoHistory = (GHOST_WIN32_GetPointerInfoHistory)::GetProcAddress(