From a7e8b3521cf1b15205fd002adac5ec3e1c34aaef Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 9 Feb 2006 05:49:55 +0000 Subject: [PATCH] If we don't know where we went, and have generated a leave event, set 2006-02-09 Tor Lillqvist * gdk/win32/gdkevents-win32.c (gdk_event_translate) : If we don't know where we went, and have generated a leave event, set current_window to the root window. This assures we will generate proper enter and leave events for popup windows. (#325521) --- ChangeLog | 8 ++++++++ ChangeLog.pre-2-10 | 8 ++++++++ gdk/win32/gdkevents-win32.c | 1 + 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5ce8f4c50c..69f7a7d342 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-02-09 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (gdk_event_translate) + : If we don't know where we went, and have + generated a leave event, set current_window to the root + window. This assures we will generate proper enter and leave + events for popup windows. (#325521) + 2006-02-08 John Ehresman * gdk/win32/gdkevents-win32.c (gdk_event_translate) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5ce8f4c50c..69f7a7d342 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +2006-02-09 Tor Lillqvist + + * gdk/win32/gdkevents-win32.c (gdk_event_translate) + : If we don't know where we went, and have + generated a leave event, set current_window to the root + window. This assures we will generate proper enter and leave + events for popup windows. (#325521) + 2006-02-08 John Ehresman * gdk/win32/gdkevents-win32.c (gdk_event_translate) diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 53ee6c4a6b..f241943cb9 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -2832,6 +2832,7 @@ gdk_event_translate (MSG *msg, synthesize_enter_or_leave_event (current_window, msg, GDK_LEAVE_NOTIFY, GDK_CROSSING_NORMAL, detail, current_x, current_y); + assign_object (¤t_window, _gdk_root); } else {