Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wterm issues - rxvt not



On Thu, 22 Oct 2026, Riccardo Mottola wrote:

wterm is still broken in 10.2 and 11.0


Refresh criterion was incorrect. Try this patch:

---START patch---
diff -urN wterm-6.2.9.orig/src/command.c wterm-6.2.9/src/command.c
--- wterm-6.2.9.orig/src/command.c	2001-08-17 04:47:22.000000000 +0000
+++ wterm-6.2.9/src/command.c	2026-10-23 10:47:28.083433102 +0000
@@ -286,8 +286,8 @@
 #ifdef OFFIX_DND
 static Atom     DndProtocol, DndSelection;
 #endif				/* OFFIX_DND */
-WMMenu *menu;
-WMAppContext *app;
+extern WMMenu *menu;
+extern WMAppContext *app;


 #ifndef NO_XLOCALE
@@ -1311,7 +1311,7 @@
     {NULL, 0};
     static unsigned char kbuf[KBUFSZ];
     int             ctrl, meta, shft, len;
-    KeySym          keysym;
+    KeySym          keysym = 0;

 /*
  * use Num_Lock to toggle Keypad on/off.  If Num_Lock is off, allow an
@@ -1892,7 +1892,7 @@
  *
  * refreshing should be correct for small scrolls, because of the
  * time-out */
-    if (refresh_count >= (refresh_limit * (TermWin.nrow - 1))) {
+    if (!refreshed || refresh_count >= (refresh_limit * (TermWin.nrow - 1))) {
 	if (refresh_limit < REFRESH_PERIOD)
 	    refresh_limit++;
 	refresh_count = 0;
diff -urN wterm-6.2.9.orig/src/feature.h wterm-6.2.9/src/feature.h
--- wterm-6.2.9.orig/src/feature.h	2000-03-05 11:20:42.000000000 +0000
+++ wterm-6.2.9/src/feature.h	2026-10-23 10:32:09.378211258 +0000
@@ -96,7 +96,7 @@
  * Only if USE_XGETDEFAULT is not defined.
  */
 #ifndef XAPPLOADDIR
-#define XAPPLOADDIR    "/usr/X11R6/lib/X11/app-defaults"
+#define XAPPLOADDIR    "/usr/X11R7/lib/X11/app-defaults"
 #endif

 /*
---END patch---

-RVP


Home | Main Index | Thread Index | Old Index