[gtk+] window: Make sure an event has a display
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: Make sure an event has a display
- Date: Tue, 19 Dec 2017 06:40:50 +0000 (UTC)
commit fcbbaae63c8b3587a75c2d017ec3e1c3870d2e07
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 18 21:58:53 2017 +0100
window: Make sure an event has a display
This fixes a crash happening later on when something tries to access the
event's display.
gtk/gtkwindow.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 23b1d2b..fa91e87 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7639,6 +7639,7 @@ do_focus_change (GtkWidget *widget,
continue;
fevent = gdk_event_new (GDK_FOCUS_CHANGE);
+ gdk_event_set_display (fevent, gtk_widget_get_display (widget));
fevent->any.type = GDK_FOCUS_CHANGE;
fevent->any.window = window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]