d1w9Ai$pen`'0!Hn;}TZMK*}\N_"c)g8B>@'%'}9d\,<K6+2"DNx9B1m')c20"he.(7JQ@
 fC*v&[(q49YDTFrdiogp*OIG&6!H2U]PS{bwKpQMk9]nHp2!#xh3/)xA";B'%*[{
Date: Fri, 25 Feb 2005 10:48:22 +1000
From: Anthony Thyssen <[EMAIL PROTECTED]>
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on lapdog
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham 
        version=3.0.2
Mime-Version: 1.0

"Richard Levitte - VMS Whacker via RT" on  wrote...
| ctwm-bugs>   * Selecting f.move or f.resize (and most other 'window
| ctwm-bugs>     operation' functions) from a root menu, just fails.
| ctwm-bugs> 
| ctwm-bugs>     In ctwm 3.6 the cursor would change appropriatally, and
| ctwm-bugs>     you can then select the window to which you want to
| ctwm-bugs>     apply it to.
| ctwm-bugs> 
| ctwm-bugs>     Of course such window operations do work fine when
| ctwm-bugs>     selected from a titlebar button or menu that is
| ctwm-bugs>     attached to a window.
| 
| I checked, and it works for me, just the way it's supposed to.  What
| exactly were you doing?  The relevant entries in my root menu tree
| are:
| 
|     "Resize"          f.resize
|     "Move"            f.move
| 
That is basically what I have...

However the WindowOps is a Sub-menu of the root window menu.

Hmm it is also failing in ctwm 3.6!!!!

In 3.6...
    For BOTH f.move and f.forcemove from the root/submenu menu, the
    cursour changes move try cursor for window selection, but then
    selecting (click, or hold) does nothing.   prehaps it could be a
    because it is a sub-menu from the root menu.

in 3.7a5...
    The cursor also doesn't chnage at all for window selection.


Here is a cut down version of the menus involved.

=======8<--------
# Menu popup buttons...
Button1 =   : r   : f.menu "TwmControls"    # Twm Controls Menu
Button3 =   : t|f : f.menu "WindowOps"

define(F_LINE,f.separator)dnl

# Menus...
menu "TwmControls" {
  "TWM_NAME Controls" f.title
  "Restart"           f.restart
  "Refresh ALL"       f.refresh             # refresh whole display
  "Window Ops"        f.menu "WindowOps"
  "-------------"     F_LINE
  # and so on...
  "Show Version"      f.version
  "-------------"     F_LINE
  "Quit TWM_NAME"     f.menu "ReallyQuit"
  "Logout"            f.menu "ReallyLogout"
  "Reboot"            f.menu "ReallyReboot"
}

menu "WindowOps" {
  "Window Ops"     f.title
  "Information"    f.identify
  "Iconify"        f.iconify                 # titlebar button
  "Refresh Win"    f.winrefresh
  "Refresh ALL"    f.refresh
  "Move"           f.move                    # titlebar          mouse 1 move
  "Move (force)"   f.forcemove
  "Resize"         f.resize                  # titlebar button & mouse 2
  "Raise/Lower"    f.raiselower              #                   mouse 1 click
  "Focus(Un)"      f.focus                   # titlebar button (removed)
  "Zoom (vert)"    f.zoom                    # titlebar button
  "FullZoom"       f.fullzoom                # titlebar button
  "Squeeze"        f.squeeze                 # titlebar shift mouse 1
  "Occupy..."      f.menu "Occupy"
  # Dangerious Functions (use warning colors)
  "-----------"    F_LINE
  "Delete"      ("firebrick":"grey")   f.delete
  "Destroy"     ("firebrick":"grey")   f.destroy
  "Del/Destory" ("firebrick":"grey")   f.deleteordestroy
  "-----------"    F_LINE
  "TWM_NAME Controls" f.menu "TwmControls"
}

=======8<--------

Note that the two menus, have links to each other.

The button 3 on the titlebar will do the right thing, the button 1 on root
window, to the sub-menu, will not.

And F_LINE is a define which changes depending on if the .twmrc file
is m4 converted for use by "twm"


| ctwm-bugs>   * Selecting resize from a menu attached to a titlebar
| ctwm-bugs>     works but if you just click to cancle, without moving
| ctwm-bugs>     the cursor, or even hitting the edge you wish to resize
| ctwm-bugs>     results in...
| ctwm-bugs>        1/ window is moved border thickness +1  down and
| ctwm-bugs>           right
| ctwm-bugs>        2/ window size is also increased a bit, even though
| ctwm-bugs>           it was cancled. 
| ctwm-bugs> 
| ctwm-bugs>     EG create an     xterm -geometry +100+100
| ctwm-bugs>     use f.resize from a titlebar menu, but cancle it
| ctwm-bugs>     without resizing and window will jump to position
| ctwm-bugs>     +104+104 and resize from 80x24  to  81x24  characters
| ctwm-bugs> 
| ctwm-bugs>     This does not happen for f.resize from a titlebar
| ctwm-bugs>     button.
| 
| Hmm, I can't reproduce this either.
| 
Definately happens for me.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
            The meek shall inherit the earth...
                       One meter wide, two meters long.
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/



Reply via email to