wl_backend: display_get_name returns XWayland display instead of wayland-0 (fixes X11 child DISPLAY)
This commit is contained in:
parent
8a9e400fd5
commit
a721f1333a
|
|
@ -9799,7 +9799,15 @@ static void wl_noop_appmenu_send(WNativeWindow window, int what, int tag)
|
|||
{ (void)window; (void)what; (void)tag; }
|
||||
|
||||
static const char *wl_display_get_name(const char *name)
|
||||
{ (void)name; return "wayland-0"; }
|
||||
{
|
||||
/* For X11 clients launched under XWayland, return the XWayland display.
|
||||
* For native Wayland clients, DON'T set DISPLAY (they use WAYLAND_DISPLAY).
|
||||
* Fallback: return the Wayland display name for backward compatibility. */
|
||||
(void)name;
|
||||
if (wl_state.xwayland && wl_state.xwayland->display_name)
|
||||
return wl_state.xwayland->display_name;
|
||||
return "wayland-0";
|
||||
}
|
||||
|
||||
static void wl_noop_switchpanel_send_enter(WNativeWindow info_win, WNativeWindow window)
|
||||
{ (void)info_win; (void)window; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue