From 1f70d54989358899c133f55663054c9bfa57c44b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 13 Sep 2024 08:24:04 -0600 Subject: [PATCH] avoid call of a null function pointer --- libs/tk/ydk/gdkwindow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/tk/ydk/gdkwindow.c b/libs/tk/ydk/gdkwindow.c index 94e7e4c2bd..774b5b2cb0 100644 --- a/libs/tk/ydk/gdkwindow.c +++ b/libs/tk/ydk/gdkwindow.c @@ -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 */