13
0

avoid call of a null function pointer

This commit is contained in:
Paul Davis 2024-09-13 08:24:04 -06:00
parent 79e78394c2
commit 1f70d54989

View File

@ -6882,7 +6882,7 @@ gdk_window_show_internal (GdkWindow *window, gboolean raise)
_gdk_make_event (GDK_WINDOW (private), GDK_MAP, NULL, FALSE);
}
if (!was_mapped && private->modal_hint)
if (!was_mapped && _gdk_modal_notify && private->modal_hint)
_gdk_modal_notify (window, TRUE);
if (!was_mapped || raise)
@ -7316,7 +7316,7 @@ gdk_window_hide (GdkWindow *window)
_gdk_synthesize_crossing_events_for_geometry_change (GDK_WINDOW (private->parent));
}
if (was_mapped && private->modal_hint)
if (was_mapped && _gdk_modal_notify && private->modal_hint)
_gdk_modal_notify (window, FALSE);
/* Invalidate the rect */