Add gdk-pixbuf to the build
[minipack.git] / patches / gtk+ / 01-mousewheel.patch
blob996f6dee4890b7b3c66bbe2fefc912af22f180dd
1 --- a/gdk/win32/gdkevents-win32.c 2008-10-17 05:06:36.000000000 +0100
2 +++ b/gdk/win32/gdkevents-win32.c 2008-11-23 14:56:17.000000000 +0000
3 @@ -2243,7 +2243,7 @@
4 RECT rect, *drag, orig_drag;
5 POINT point;
6 MINMAXINFO *mmi;
7 - HWND hwnd;
8 + HWND hwnd, hwndc;
9 HCURSOR hcursor;
10 BYTE key_state[256];
11 HIMC himc;
12 @@ -2855,8 +2855,15 @@
13 point.x = GET_X_LPARAM (msg->lParam);
14 point.y = GET_Y_LPARAM (msg->lParam);
16 - if ((hwnd = WindowFromPoint (point)) == NULL)
17 - break;
18 + /* Find our toplevel window */
19 + hwnd = GetAncestor (msg->hwnd, GA_ROOT);
21 + /* Walk back up to the outermost child at the desired point */
22 + do {
23 + ScreenToClient (hwnd, &point);
24 + hwndc = ChildWindowFromPoint (hwnd, point);
25 + ClientToScreen (hwnd, &point);
26 + } while (hwndc != hwnd && (hwnd = hwndc, 1));
28 msg->hwnd = hwnd;
29 if ((new_window = gdk_win32_handle_table_lookup ((GdkNativeWindow) msg->hwnd)) == NULL)