[comp.windows.x] xfish and twm

xmjschm@mbcrrb.harvard.edu (Mike Schmelzer) (08/08/89)

Why can't I resize an xfish window when using twm ?

More generally, what window attribute allows/disallows resizing?
What would I need to modify in xfish to make its window resizeable?

When you answer, please assume I know nothing. Thanks in advance.
--
===== Mike Schmelzer ====== "Republicans think community service is something
= xmjschm@harvspha.BITNET =  you are sentenced to after you're caught."
xmjschm@mbcrr.harvard.edu =                  - Ron Brown, Chairman of the DNC
===========================  "You make me PATHETIC." - Tom Burke

echarne@thebeach.nrtc.northrop.com (Eli B. Charne <echarne>) (08/09/89)

In article <XMJSCHM.89Aug8104738@mbcrrb.harvard.edu> xmjschm@mbcrrb.harvard.edu (Mike Schmelzer) writes:
-Why can't I resize an xfish window when using twm ?

-More generally, what window attribute allows/disallows resizing?
-What would I need to modify in xfish to make its window resizeable?


   twm uses an initialization file called .twmrc (presumable in your home
   directory.)

   Inside of this file a number of options can be set, including specifying
   that certain windows should not have a "title" (the bar with the resize,
   iconify, and focus gadgets)

   If this is what is happening to you (you aren't getting those gadgets) look
   in your .twmrc file for an area that looks like this:

   NoTitle
   {
      "xclock"
      "xload"
      "xfish"
    }

    You may have a number of other files in there, but simply remove the line
    with "xfish" to allow twm to decorate that window with a title bar.

							-Eli

-----------
echarne@nrtc.northrop.com               echarne@orion.cf.uci.edu
echarne@ics.uci.edu                     zebcharne@uci.BITNET

xmjschm@mbcrrb.harvard.edu (Mike Schmelzer) (08/10/89)

In article <3170@gremlin.nrtc.northrop.com> echarne@thebeach.nrtc.northrop.com (Eli B. Charne <echarne>) writes:

eli> In article <XMJSCHM.89Aug8104738@mbcrrb.harvard.edu> xmjschm@mbcrrb.harvard.edu (Mike Schmelzer) writes:
mike> Why can't I resize an xfish window when using twm ?
mike> More generally, what window attribute allows/disallows resizing?
mike> What would I need to modify in xfish to make its window resizeable?

eli> twm uses an initialization file called .twmrc (presumable in your home
eli>  directory.)
eli> ......
eli> You may have a number of other files in there, but simply remove the line
eli>  with "xfish" to allow twm to decorate that window with a title bar.

Thanks, but I wish it were that simple.
I've got the resize box in the title bar for xfish, but it doesn't work.
I tried looking at / fiddling with the window hints for the xfish window in
the source code but couldn't really find anything that worked.

To clarify my earlier question : Generally, is there a window attribute that
allows / disallows a window manager's resizing it ? (I'm looking not only
for an answer to my specific xfish question, but also for a better feel for
"the whole X thang." )

Thanks again!
-Mike
--
===== Mike Schmelzer ====== "Republicans think community service is something
= xmjschm@harvspha.BITNET =  you are sentenced to after you're caught."
xmjschm@mbcrr.harvard.edu =                  - Ron Brown, Chairman of the DNC
===========================  "You make me PATHETIC." - Tom Burke

envbvs@epb2.lbl.gov (Brian V. Smith) (08/10/89)

xmjschm@mbcrrb.harvard.edu < 
< In article <3170@gremlin.nrtc.northrop.com>
echarne@thebeach.nrtc.northrop.com (Eli B. Charne <echarne>) writes:
< 
< eli> In article <XMJSCHM.89Aug8104738@mbcrrb.harvard.edu>
xmjschm@mbcrrb.harvard.edu (Mike Schmelzer) writes:
< mike> Why can't I resize an xfish window when using twm ?
< mike> More generally, what window attribute allows/disallows resizing?
< mike> What would I need to modify in xfish to make its window resizeable?
< 
< eli> twm uses an initialization file called .twmrc (presumable in your home
< eli>  directory.)
< eli> ......
< eli> You may have a number of other files in there, but simply remove
the line
< eli>  with "xfish" to allow twm to decorate that window with a title bar.
< 
< Thanks, but I wish it were that simple.
< I've got the resize box in the title bar for xfish, but it doesn't work.
< I tried looking at / fiddling with the window hints for the xfish window in
< the source code but couldn't really find anything that worked.

The problem really is that xfish fills the screen with a 1024x864 window.
When you try to resize a window with twm (at least), you must first ENLARGE
the window edges you wish to change even if you then want to shrink the 
window.  
>>> If the window is already the full size of the screen then there
    is no way to first enlarge it!  

The second problem is that xfish takes no parameters for the geometry.  
I assume it queries the server for the screen size and uses that value.
_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
We don't need no signatures!