Revert "wayland: require WAYLAND_DISPLAY be set to open wayland display"
This reverts commit35489f5d31. It snuck in when i was trying to push commitf4d2022d46
This commit is contained in:
		| @ -431,16 +431,13 @@ _gdk_wayland_display_open (const gchar *display_name) | ||||
|  | ||||
|   GDK_NOTE (MISC, g_message ("opening display %s", display_name ? display_name : "")); | ||||
|  | ||||
|   /* If these variables are unset then wayland initialisation will surely | ||||
|   /* If this variable is unset then wayland initialisation will surely | ||||
|    * fail, logging a fatal error in the process.  Save ourselves from | ||||
|    * that. | ||||
|    */ | ||||
|   if (g_getenv ("XDG_RUNTIME_DIR") == NULL) | ||||
|     return NULL; | ||||
|  | ||||
|   if (g_getenv ("WAYLAND_DISPLAY") == NULL) | ||||
|     return NULL; | ||||
|  | ||||
|   wl_log_set_handler_client (log_handler); | ||||
|  | ||||
|   wl_display = wl_display_connect (display_name); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Ray Strode
					Ray Strode