blob: 6f9ae32d1fff7c07152f5feec6129fc0e23bafc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -362,9 +362,6 @@
Window clip_window;
HWND msg_hwnd = 0;
- if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId())
- return TRUE; /* don't clip in the desktop process */
-
if (!data) return FALSE;
if (!(clip_window = init_clip_window())) return TRUE;
@@ -1381,6 +1378,9 @@
{
if (!clip) clip = &virtual_screen_rect;
+ if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId())
+ return TRUE; /* don't clip in the desktop process */
+
if (grab_pointer)
{
HWND foreground = GetForegroundWindow();
|