home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 17889 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.4 KB

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