Guarded the tray icon X11 code path with GDK_WINDOWING_X11 while preserving the non-X11 fallback behavior in gtkutil_tray_icon_supported.

Switched Win32 window handle retrieval to gdk_win32_window_get_handle and wrapped the usage in GDK_WINDOWING_WIN32 in fe_gui_info_ptr.
This commit is contained in:
2026-01-23 00:43:30 -07:00
parent 5715245080
commit d65cef176e
2 changed files with 5 additions and 5 deletions

View File

@@ -1080,8 +1080,8 @@ fe_gui_info_ptr (session *sess, int info_type)
switch (info_type)
{
case 0: /* native window pointer (for plugins) */
#ifdef WIN32
return gdk_win32_window_get_impl_hwnd (gtk_widget_get_window (sess->gui->window));
#ifdef GDK_WINDOWING_WIN32
return gdk_win32_window_get_handle (gtk_widget_get_window (sess->gui->window));
#else
return sess->gui->window;
#endif