Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!aplcen!samsung!cs.utexas.edu!husc6!endor!kochhar From: kochhar@endor.harvard.edu (Sandeep Kochhar) Newsgroups: comp.windows.x Subject: twm question Keywords: X11R3, twm, Sun3/60, SunOS3.5 Message-ID: <3276@husc6.harvard.edu> Date: 28 Nov 89 19:47:51 GMT Sender: news@husc6.harvard.edu Reply-To: kochhar@endor.harvard.edu (Sandeep Kochhar) Distribution: usa Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 40 While modifying my .twmrc and moving around xterm windows, I noticed the following problem: Consider the following definition in my .twmrc: Button2 = : title : f.move This works fine in that I can move a window (including xterm) by pressing button 2 on the title bar. However, I noticed that if I change the definitions to: Button2 = : title : f.function "f-move" Function "f-move" { f.move } then I have some problems moving an xterm window. When I press button 2 on the title bar, the twm starts moving the window outline. If I release button 2 when the pointer is outside the xterm window, it moves fine. However, if I release button 2 when the pointer is *inside* the xterm window, twm doesn't move the window, but continues to move the outline. Then if I press button2 and release it outside the xterm window, the window does move, but the xterm window gets text pasted to it as well (as is normally done by button2). Can someone explain to me why the two definitions above should behave any differently? Thanks. Sandeep Kochhar (617) 495-3988 mail: kochhar@harvard.harvard.edu Harvard University kochhar@harvard.csnet 33 Oxford st, kochhar@harvard.uucp Cambridge, Ma 02138 kochhar@harvard.bitnet