🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99517

another forwarded bug report

#99517
From: gerday
Date: Tue, 07 Aug 1990 17:54
75 lines
2883 bytes
------- Forwarded Message

Return-Path: greiner@america
Return-Path: <greiner@america>
Received: from america.brc.shell.com by donax.brc.shell.com (4.1/BRC-2.0)
	id AA03412; Tue, 7 Aug 90 12:01:39 CDT
Received: from localhost by america.brc.shell.com (4.1/BRC-2.0)
	id AA05378; Tue, 7 Aug 90 11:44:10 CDT
Message-Id: <9008071644.AA05378@america.brc.shell.com>
To: gerday@america
Cc: greiner@america
Subject: Emacs 18.83 bug report (again)
Date: Tue, 07 Aug 90 11:44:07 -0500
From: greiner@america

Jan,
Please forward to bug-gnu-emacs@prep.ai.mit.edu

The following diff file improves emacs interaction with an X11 window
manger.  The Xt_Set_Size_Hints function was attempting to resize the
window BEFORE updating the window hints.  My window manager rejected
the resize before finding out that it should have accepted it.  The
current code should work if your window manager always resizes the
window to the size specified in the WM_NORMAL_HINTS.

The patch moves the window resize call after the call to
XSetNormalHints.  At this location, it should work with any window
manager. 

*** OLD/x11term.c	Thu Jul 26 15:41:15 1990
- --- x11term.c	Tue Aug  7 11:16:58 1990
***************
*** 2195,2207 ****
  
      change_screen_size (height, width, 0 - (do_resize == False));
  
- -     if (do_resize)
- -     {
- - 	XResizeWindow(XXdisplay, XXwindow, pixelwidth, pixelheight);
- - 	XFlush(XXdisplay);
- -     }
  
- - 
      sizehints.width_inc = XXfontw;
      sizehints.height_inc = XXfonth;
  
- --- 2195,2201 ----
***************
*** 2225,2230 ****
- --- 2219,2231 ----
  #endif
  
      XSetNormalHints(XXdisplay, w, &sizehints);
+ 
+     /* Now that window manager may permit resize, do it if needed. */
+     if (do_resize)
+     {
+ 	XResizeWindow(XXdisplay, XXwindow, pixelwidth, pixelheight);
+ 	XFlush(XXdisplay);
+     }
  }
  
  

------- End of Forwarded Message

Jan Gerday          << C'etait chouette... on a bien rigole! >>
gerday@shell.com                        - Petit Nicolas

..!{sun,psuvax1,bcm,rice,decwrl,cs.utexas.edu}!shell!gerday
Shell Development Company, Bellaire Research Center
P.O. Box 481, Room 4202, Houston, TX 77001      (Tel: 713.663.2817)

*** I don't work for Shell, so nothing I say represents them in any way! ***
Technical Details
Message-ID: <9008071754.AA04564@lyon.brc.shell.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!shell.com!gerday

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,63ad286901e0cd40,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-08-08 06:48:47 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!shell.com!gerday
From: gerday@shell.com
Newsgroups: gnu.emacs.bug
Subject: another forwarded bug report
Message-ID: <9008071754.AA04564@lyon.brc.shell.com>
Date: 7 Aug 90 17:54:18 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 75
Posted: Tue Aug  7 18:54:18 1990