From 9794dc5628573ec595122d563e45324b88930345 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 26 Aug 2017 10:50:50 -0400 Subject: [PATCH] window accessible: Use GdkEvent API --- gtk/a11y/gtkwindowaccessible.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c index 3941b38072..572ee74d8d 100644 --- a/gtk/a11y/gtkwindowaccessible.c +++ b/gtk/a11y/gtkwindowaccessible.c @@ -77,10 +77,12 @@ window_state_event_cb (GtkWidget *widget, GdkEventWindowState *event) { AtkObject* obj; + GdkWindowState changed, new_state; + gdk_event_get_window_state ((GdkEvent *)event, &changed, &new_state); obj = gtk_widget_get_accessible (widget); atk_object_notify_state_change (obj, ATK_STATE_ICONIFIED, - (event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) != 0); + (new_state & GDK_WINDOW_STATE_ICONIFIED) != 0); return FALSE; }