🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #88066

xmenu.c fix

#88066
From: F.Pierresteguy
Date: Mon, 08 Aug 1994 04:25
82 lines
3564 bytes
This patch should definitely fix this problem without having to modify
the Xresources file.

Mon Aug  1 11:10:40 1994  Frederic Pierresteguy  (F.Pierresteguy@frcl.bull.fr)

	* xmenu.c (xmenu_show): Don't allow any geometry request from the
	user.


===================================================================
RCS file: /triton/GNU.rep/emacs19/src/xmenu.c,v
retrieving revision 1.2
diff -c -p -r1.2 xmenu.c
*** 1.2	1994/06/01 12:39:53
--- xmenu.c	1994/08/01 08:43:38
*************** the Free Software Foundation, 675 Mass A
*** 64,69 ****
--- 64,70 ----
  #include <X11/IntrinsicP.h>
  #include <X11/CoreP.h>
  #include <X11/StringDefs.h>
+ #include <X11/Shell.h>
  #include <X11/Xaw/Paned.h>
  #include "../lwlib/lwlib.h"
  #include "../lwlib/xlwmenuP.h"
*************** xmenu_show (f, x, y, menubarp, keymaps, 
*** 1366,1371 ****
--- 1367,1374 ----
    int menu_id;
    Widget menu;
    XlwMenuWidget menubar = (XlwMenuWidget) f->display.x->menubar_widget;
+   Arg av [2];
+   int ac = 0;
  
    /* This is the menu bar item (if any) that led to this menu.  */
    widget_value *menubar_item = 0;
*************** xmenu_show (f, x, y, menubarp, keymaps, 
*** 1548,1553 ****
--- 1551,1561 ----
    menu = lw_create_widget ("popup", first_wv->name, menu_id, first_wv,
  			   f->display.x->widget, 1, 0,
  			   popup_selection_callback, popup_down_callback);
+ 
+   /* Don't allow any geometry request from the user.  */
+   XtSetArg (av[ac], XtNgeometry, 0); ac++;
+   XtSetValues (menu, av, ac);
+ 
    /* Free the widget_value objects we used to specify the contents.  */
    free_menubar_widget_value_tree (first_wv);
  

 > In article <9407281313.AA02708@jac.webo.dg.com> dibb@jac.webo.dg.com (Jim Dibb) writes:
 > > 
 > > In GNU Emacs 19.25.1 of Wed Jul 27 1994 on jac (m88k-dg-dgux5.4R2)
 > > 
 > > After running 19.25 without using the toolkit for weeks I decided to
 > > see what the toolkit would do.
 > > 
 > > So I compiled with the toolkit (reported as LUCID) and now I am having
 > > trouble with pop up menu placement.  Pop up menus are always drawn in
 > > the upper left corner of the original emacs frame.  Sub menus are
 > > drawn in the correct position, ie where they belong, not hanging off
 > > of the incorrectly placed menu.
 > > 
 > > If I open a new frame, the menus are still drawn in the top left
 > > corner of the original frame.
 > > 
 > > The menus act like they are in the correct position.  Pointing into
 > > the empty space where the font menu should be toggles between Misc and
 > > Courier fonts.
 > > 
 > > If this has already been fixed, please point me to the fix.
 > > Thanks.
 > > 
 > > Jim
 > > 
 > Check your Xresources. If you have "Emacs*geometry: something" you will 
 > get that effect. Change it to "Emacs.geometry: something" instead.
 > 
 > 	/ Johan
 > 
 > 
Technical Details
Message-ID: <9408080412.AA10880@sunshine>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!frcl.bull.FR!F.Pierresteguy

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,98658a0daffa96ac,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-07 22:52:44 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!frcl.bull.FR!F.Pierresteguy
From: F.Pierresteguy@frcl.bull.FR
Newsgroups: gnu.emacs.bug
Subject: xmenu.c fix
Date: 8 Aug 1994 00:25:53 -0400
Organization: GNUs Not Usenet
Lines: 83
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9408080412.AA10880@sunshine>