forked from AuroraMiddleware/gtk
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:
parent
03ee4229f2
commit
732716ba95
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user