mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user