home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 17846 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.5 KB  |  54 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!ornl!utkcs2!emory!wupost!sdd.hp.com!think.com!ames!sgi!twilight!zola!aquarium!jj
  3. From: jj@aquarium.esd.sgi.com (Jennifer Jacobi)
  4. Subject: Re: Borders of fixed-sized windows
  5. Message-ID: <tfk9p64@zola.esd.sgi.com>
  6. Keywords: client decorations
  7. Sender: news@zola.esd.sgi.com (Net News)
  8. Organization: Silicon Graphics, Inc.  Mountain View, CA
  9. References:  <34497@adm.brl.mil>
  10. Date: Fri, 11 Dec 92 18:20:33 GMT
  11. Lines: 41
  12.  
  13.  
  14. In article <34497@adm.brl.mil>, drew+@cs.cmu.edu writes:
  15. > I'm using Xlib, and I'm trying to create a window that
  16. > will have a constant size.  (The user will be unable
  17. > to adjust the size of the window.)
  18. > However!  4Dwm leaves the window resize handle decorations
  19. > on the window, even though they're useless.  Is there
  20. > any way to get rid of them from within my program?
  21. > It would be way keen if 4Dwm was smart enough to notice that
  22. > "minsize equals maxsize" and then ditch the resize handles.
  23.  
  24.     
  25. Never ask how "smart" a window manager is -- it's dangerous.
  26. 8-)    
  27.  
  28.  
  29. What you can do however is the following:
  30.  
  31. 1) In your .Xdefaults file you can place the line
  32.  
  33. 4Dwm*<appClass>.clientDecoration: title
  34.  
  35. This will take the min and max buttons away as well as the resize handles
  36. around the boarder.  This also works for mwm.  (YOU MUST restart the 
  37. window manager before this will take effect -- this is a window manager
  38. resource.)
  39.  
  40. OR
  41.  
  42. 2) Programatically you can set mwm or 4Dwm window manager hints to 
  43. do the same thing.
  44.  
  45. You will find this in OSF Motif programmer's guide (1.1)  page 12-13.
  46.  
  47.  
  48. --jj
  49. jj@sgi.com
  50.  
  51.  
  52.