summaryrefslogtreecommitdiffstats
path: root/generic/tkFocus.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-03-02 20:54:36 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-03-02 20:54:36 (GMT)
commit19c8025c9dc2618bbfb1d8664145461bca478cff (patch)
treeb76384fceec969f199c38252dfe0e7561a9631a8 /generic/tkFocus.c
parent2a2a8ddef821cf61de5c1928f06702eaf668a074 (diff)
downloadtk-19c8025c9dc2618bbfb1d8664145461bca478cff.zip
tk-19c8025c9dc2618bbfb1d8664145461bca478cff.tar.gz
tk-19c8025c9dc2618bbfb1d8664145461bca478cff.tar.bz2
Fix [08e2f8e6f0]: unable to change focus after prior selection of focus. The problem was that the mask in the event handler deletion did not match the mask of the event handler creation. Test focus-7.1 now passes.
Diffstat (limited to 'generic/tkFocus.c')
-rw-r--r--generic/tkFocus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkFocus.c b/generic/tkFocus.c
index 7b5acfb..4d46e4b 100644
--- a/generic/tkFocus.c
+++ b/generic/tkFocus.c
@@ -603,7 +603,7 @@ TkSetFocusWin(
if (displayFocusPtr->focusOnMapPtr != NULL) {
Tk_DeleteEventHandler((Tk_Window) displayFocusPtr->focusOnMapPtr,
- StructureNotifyMask, FocusMapProc,
+ VisibilityChangeMask, FocusMapProc,
displayFocusPtr->focusOnMapPtr);
displayFocusPtr->focusOnMapPtr = NULL;
}