frames: Avoid default NULL frame title

The default GtkWindow title if NULL is set is obtained from g_get_prgname(),
prefer an empty string here.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2791>
This commit is contained in:
Carlos Garnacho 2023-01-16 15:16:16 +01:00
parent 89b254a74b
commit 0fff52ee28

View File

@ -239,7 +239,7 @@ frame_sync_title (GtkWindow *frame,
if (gdk_x11_display_error_trap_pop (display))
return;
gtk_window_set_title (frame, title);
gtk_window_set_title (frame, title ? title : "");
g_free (title);
}