set event->any.window before calling filter functions.

1999-11-23  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
This commit is contained in:
Tor Lillqvist 1999-11-23 22:38:50 +00:00 committed by Tor Lillqvist
parent 2421aab193
commit 0b793d2cc8
8 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,8 @@
1999-11-23 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkgamma.h: Adapt cast macros to standard.

View File

@ -1,3 +1,8 @@
1999-11-23 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkgamma.h: Adapt cast macros to standard.

View File

@ -1,3 +1,8 @@
1999-11-23 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkgamma.h: Adapt cast macros to standard.

View File

@ -1,3 +1,8 @@
1999-11-23 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkgamma.h: Adapt cast macros to standard.

View File

@ -1,3 +1,8 @@
1999-11-23 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkgamma.h: Adapt cast macros to standard.

View File

@ -1,3 +1,8 @@
1999-11-23 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkgamma.h: Adapt cast macros to standard.

View File

@ -1,3 +1,8 @@
1999-11-23 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): set
event->any.window before calling filter functions.
Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkgamma.h: Adapt cast macros to standard.

View File

@ -2972,6 +2972,7 @@ gdk_event_translate (GdkEvent *event,
{
/* Check for filters for this window */
GdkFilterReturn result;
event->any.window = window;
result = gdk_event_apply_filters
(xevent, event, ((GdkWindowPrivate *) window)->filters);
@ -3040,6 +3041,7 @@ gdk_event_translate (GdkEvent *event,
if (filter->type == xevent->message)
{
GDK_NOTE (EVENTS, g_print ("client filter matched\n"));
event->any.window = window;
result = (*filter->function) (xevent, event, filter->data);
switch (result)
{