1 Commits

Author SHA1 Message Date
1805d1aa32 fix: Win32 taskbar toggle + --existing now work. 2026-03-13 11:07:41 -06:00
6 changed files with 20 additions and 9 deletions

View File

@@ -217,7 +217,7 @@ jobs:
subject-path: Zoitechat-*-x86_64.AppImage
- name: Upload AppImage artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v5
with:
name: zoitechat-appimage
path: Zoitechat-*-x86_64.AppImage

View File

@@ -36,7 +36,7 @@ jobs:
- name: Upload Flatpak Bundle
id: upload_flatpak
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v5
with:
name: zoitechat.flatpak
path: zoitechat.flatpak

View File

@@ -74,7 +74,7 @@ jobs:
cp -v "$GITHUB_WORKSPACE"/packaging/manjaro/.SRCINFO artifacts/
- name: Upload package artifacts
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v5
with:
name: zoitechat-manjaro-package
path: artifacts/*

View File

@@ -143,7 +143,7 @@ jobs:
- name: Upload Installer
id: upload_installer
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v5
with:
name: Installer ${{ matrix.arch }}
path: ZoiteChat-*.exe
@@ -157,7 +157,7 @@ jobs:
- name: Upload Build Files
id: upload_buildfiles
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v5
with:
name: Build Files ${{ matrix.arch }}
path: zoitechat-build

View File

@@ -91,7 +91,7 @@ static const GOptionEntry gopt_entries[] =
{"configdir", 'u', 0, G_OPTION_ARG_NONE, &arg_show_config, N_("Show user config directory"), NULL},
{"url", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &arg_url, N_("Open an irc://server:port/channel?key URL"), "URL"},
{"command", 'c', 0, G_OPTION_ARG_STRING, &arg_command, N_("Execute command:"), "COMMAND"},
#ifdef USE_DBUS
#if defined(USE_DBUS) || defined(WIN32)
{"existing", 'e', 0, G_OPTION_ARG_NONE, &arg_existing, N_("Open URL or execute command in an existing ZoiteChat"), NULL},
#endif
{"minimize", 0, 0, G_OPTION_ARG_INT, &arg_minimize, N_("Begin minimized. Level 0=Normal 1=Iconified 2=Tray"), N_("level")},

View File

@@ -3868,10 +3868,21 @@ mg_win32_filter (GdkXEvent *xevent, GdkEvent *event, gpointer data)
{
if (strcmp (command, "__WIN32_TASKBAR_TOGGLE__") == 0)
{
if (gtk_widget_get_visible (current_sess->gui->window))
fe_ctrl_gui (current_sess, FE_GUI_ICONIFY, 0);
GtkWidget *window = current_sess->gui->window;
GtkWindow *gtk_window = GTK_WINDOW (window);
GdkWindow *gdk_window = gtk_widget_get_window (window);
gboolean iconified = gdk_window && ((gdk_window_get_state (gdk_window) & GDK_WINDOW_STATE_ICONIFIED) != 0);
if (!gtk_widget_get_visible (window) || iconified)
{
gtk_widget_show (window);
gtk_window_deiconify (gtk_window);
gtk_window_present (gtk_window);
}
else
fe_ctrl_gui (current_sess, FE_GUI_SHOW, 0);
{
gtk_window_iconify (gtk_window);
}
}
else
{