mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
main: Check if any debug flags are set in gtk_get_debug_flags()
We end up checking the debug flags for the default display, but that's unnecessary if we know that no display has any debug flags set anyway.
This commit is contained in:
parent
d98e05b91a
commit
e3f1a3d27c
@ -740,7 +740,10 @@ gtk_set_display_debug_flags (GdkDisplay *display,
|
||||
guint
|
||||
gtk_get_debug_flags (void)
|
||||
{
|
||||
return gtk_get_display_debug_flags (gdk_display_get_default ());
|
||||
if (gtk_get_any_display_debug_flag_set ())
|
||||
return gtk_get_display_debug_flags (gdk_display_get_default ());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user