From 3d4213b51200d666226a73893b45660ee9dad8af Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 15 Feb 2014 18:14:48 +0000 Subject: [PATCH] mimic wxMSW wxSetCursorEvent propagation behavior, closes #15801 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index a5aa7f7dac..549adea3f1 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1547,6 +1547,9 @@ static void SendSetCursorEvent(wxWindow* win, int x, int y) gs_needCursorResetMap[win] = true; return; } + // this is how wxMSW works... + if (w->GetCursor().IsOk()) + break; w = w->GetParent(); } while (w); if (gs_needCursorResetMap[win])