debug: When debug-printing, treat NULL as the default display

Otherwise we lose debug prints from all code that allows NULL displays.
This commit is contained in:
Benjamin Otte 2020-02-19 01:20:19 +01:00
parent 03ee4229f2
commit 732716ba95

View File

@ -687,6 +687,9 @@ gtk_get_display_debug_flags (GdkDisplay *display)
{
gint i;
if (display == NULL)
display = gdk_display_get_default ();
for (i = 0; i < N_DEBUG_DISPLAYS; i++)
{
if (debug_flags[i].display == display)