Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 17 May 2001 15:54:24 -0400 From: Agostino Deligia To: cygwin AT cygwin DOT com Subject: rxvt and initial size == maximized Message-ID: <20010517155424.A1200@ADELIGIA> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="wtMHIBnS/fk6hAzt" Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i --wtMHIBnS/fk6hAzt Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 AT alis DOT com --wtMHIBnS/fk6hAzt Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rxvt-2.7.2-bg-and-resize.patch" --- 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; --wtMHIBnS/fk6hAzt Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple --wtMHIBnS/fk6hAzt--