shell/tray-icon: Adapt to moved xwindow property to XWindow

Associated merge request:
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3211

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3026>
This commit is contained in:
Bilal Elmoussaoui 2023-11-22 11:09:01 +01:00
parent d3b2784db0
commit 129fe3a07e

View File

@ -64,7 +64,8 @@ shell_tray_icon_window_created_cb (MetaDisplay *display,
MetaWindow *window,
ShellTrayIcon *tray_icon)
{
Window xwindow = meta_window_get_xwindow (window);
MetaX11Display *x11_display = meta_display_get_x11_display (display);
Window xwindow = meta_x11_display_lookup_xwindow (x11_display, window);
if (tray_icon->tray_child &&
xwindow == na_xembed_get_socket_window (NA_XEMBED (tray_icon->tray_child)))