Description: Fix Gpm_Wgetch argument mismatch when system gpm is enabled
 When the system gpm library is enabled (HAVE_LIBGPM), the bundled call in
 _Gpm_Wgetch() passed a WINDOW* argument to the system Gpm_Wgetch(), which is
 declared without parameters in the newer gpm.h, causing a "too many
 arguments" compile error on amd64. Call Gpm_Wgetch() without arguments in
 that branch.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: no
Last-Update: 2026-08-27

--- aumix-2.9.1.orig/src/mouse.c
+++ aumix-2.9.1/src/mouse.c
@@ -148,7 +148,11 @@ int             Sysm_Wgetch(WINDOW * win
 
 int             _Gpm_Wgetch(WINDOW * win)
 {
+#ifdef HAVE_LIBGPM
+	return Gpm_Wgetch();
+#else
 	return Gpm_Wgetch(win);
+#endif
 }
 
 /* assumes upper left corner is (0, 0) */
