mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
macos: Don't set NULL as a display name
Other GDK backends ensure there is always a default name set. Fixes https://github.com/gtk-rs/gtk4-rs/issues/868
This commit is contained in:
parent
c6d5816c95
commit
f41cfd3caa
@ -730,7 +730,8 @@ _gdk_macos_display_open (const char *display_name)
|
||||
if (self != NULL)
|
||||
return NULL;
|
||||
|
||||
GDK_NOTE (MISC, g_message ("opening display %s", display_name ? display_name : ""));
|
||||
display_name = display_name ? display_name : "";
|
||||
GDK_NOTE (MISC, g_message ("opening display %s", display_name));
|
||||
|
||||
/* Make the current process a foreground application, i.e. an app
|
||||
* with a user interface, in case we're not running from a .app bundle
|
||||
|
Loading…
Reference in New Issue
Block a user