This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

rxvt and initial size == maximized


Greetings all,

I am currently running the latest Cygwin 1.3.1 (installed from the net via
setup.exe) on a Windows 2000 SP1 PC and have noticed two weird problems with
the rxvt that comes with Cygwin.

- If rxvt is started maximized, say with "cmd /c start /max rxvt", the terminal
  size is not correct until I do a restore and then a maximize again from the
  system menu. (I have set TERM=rxvt-cygwin-native).

- I use a white foreground on black background. So when the previous problem
  occurs, the portion of the rxvt window that is not part of the smaller
  terminal size is white (the foreground color) instæad of black (the
  background color).

So, I downloaded the source for rxvt 2.7.2 and examined it awhile and came up
with the attached patch to fix the problem. Would it be possible to incorporate
this patch into the next release of the Cygwin rxvt?

Thanks,
-- 
Agostino Deligia
Software Developer
Alis Technologies Inc.
adeligia@alis.com
--- rxvt-2.7.2-orig/src/main.c	Sat Dec 18 02:41:47 1999
+++ rxvt-2.7.2/src/main.c	Wed Mar 28 11:56:16 2001
@@ -341,7 +341,11 @@
  */
 
 #ifdef PREFER_24BIT
+#if defined(__CYGWIN__)
+    attributes.background_pixel = PixColors[Color_bg];
+#else /* !defined(__CYGWIN__) */
     attributes.background_pixel = PixColors[Color_fg];
+#endif /* defined(__CYGWIN__) */
     attributes.border_pixel = PixColors[Color_fg];
     attributes.colormap = Xcmap;
     TermWin.parent[0] = XCreateWindow(Xdisplay, Xroot,
@@ -1446,6 +1450,10 @@
 
     init_env();
     init_command(cmd_argv);
+
+#if defined(__CYGWIN__)
+    tt_resize();
+#endif /* defined(__CYGWIN__) */
 
     main_loop();		/* main processing loop */
     return EXIT_SUCCESS;

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]