Thanks for the infos so far,

Some more infos from me:
I am on debian testing
and have ctwm 3.7-3.3 installed.

I don't see any focus related settings
in /etc/X11/ctwm/system.ctwmrc and ~/.ctwmrc
so I should be running the ctwm defaults.
At least I can see I have 'focus follows mouse'.

I have attached my ~/.ctwmrc
(Please don't laugh - I haven't changed this in maybe 10 years
 - I am not customizing a lot :P)

I gave those a short try:
 - wmname LG3D
 - update-alternative switch from oracle to openjdk
 - _JAVA_AWT_WM_NONREPARENTING=1
   (which I found at: http://awesome.naquadah.org/wiki/Problems_with_Java)

I did not see any change in behaviour so far.
I don't have the time currently to experiment extensively, though.

Regards,
Matthias Kievernagel.

P.S. Are you the Olaf Seibert who ported nethack to the Amiga long ago?
Big late thank you for that from here :)

#
# ctwm configuration file; needs to be kept small to conserve string
# space in systems whose compilers don't handle medium-sized strings.
#

NoGrabServer
RestartPreviousState
DecorateTransients
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
ShowWorkSpaceManager                    # start with workspcace manager up
ShowIconManager
IconifyByUnmapping
UseThreeDMenus
UseThreeDTitles
UseThreeDIconManagers
UseThreeDBorders
UseThreeDWMap
SunkFocusWindowTitle

WorkSpaceManagerGeometry        "120x30+0-0" 4
WorkSpaces {
    "1"   {"#686B9F" "white" "DeepSkyBlue3" "white" "xpm:background8.xpm"}
    "2"   {"#619AAE" "white" "firebrick" "white" "xpm:background8.xpm"}
    "3"   {"#727786" "white" "brown" "white" "xpm:background8.xpm"}
    "4"   {"#8C5b7A" "white" "MidnightBlue" "white" "xpm:background8.xpm"}
}

Color
{
    BorderColor           "Red"
    DefaultBackground     "blue"
    DefaultForeground     "gray85"
    BorderTileBackground  "DeepSkyBlue1" {
        "xterm"         "DeepSkyBlue3"
    }
    BorderTileForeground  "Black" {
        "xterm" "DeepSkyBlue3"
    }
    TitleBackground       "DeepSkyBlue1" {
        "xterm" "DeepSkyBlue3"
    }
    TitleForeground       "Black" {
        "xterm" "White"
    }
    MenuBackground        "#686B9F"
    MenuForeground        "white"
    MenuTitleBackground   "gray70"
    MenuTitleForeground   "White"
    IconBackground        "LightSlateBlue"
    IconForeground        "White"
    IconBorderColor       "gray85"
    IconManagerBackground "DeepSkyBlue1" {"Axe" "DeepSkyBlue3" "xload" 
"DeepSkyBlue2"}
    IconManagerForeground "Black"
    MapWindowBackground   "DeepSkyBlue1" {
        "root*" "Red"
        "xterm" "DeepSkyBlue3"
        "Axe"   "Yellow"
    }
    MapWindowForeground   "Black" {
        "xterm" "White"
    }
}

IconManagerDontShow {
    "WorkSpaceManager"
}

IconManagerGeometry  "480x30+130-0" 6

NoTitle {                  # little programs that look like icons
    "TWM Icon Manager"
    "WorkSpaceManager"
}

StartIconified { "Postamt 0.*" }
WindowGeometries {
    "Postamt 0.*"    "+100+450"
}

#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

#
# Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "defops"
Button2 = : root : f.menu "windowops"
Button3 = : root : f.menu "projects"

Button1 = m     : window|icon   : f.function "move-or-lower"
Button2 = m     : window|icon   : f.iconify
Button3 = m     : window|icon   : f.function "move-or-raise"

Button1 =       : title         : f.function "move-or-raise"
Button2 =       : title         : f.raiselower

Button1 =       : icon          : f.function "move-or-iconify"
Button2 =       : icon          : f.iconify

Button1 =       : iconmgr       : f.iconify
Button2 =       : iconmgr       : f.iconify

Button1 =       : frame         : f.resize
Button1 = m     : frame         : f.move
Button2 =       : frame         : f.raiselower
#
# And a menus with the usual things
#
menu "defops"
{
    "Twm"               f.title
    "Rxvt"              !"rxvt -fn 9x15&"
    "Calculator"        !"xcalc&"
    "Xman"              !"xman &"
    "Xmag"              !"xmag&"
    ""                  f.nop
    "Restart"           f.restart
    "Exit"              f.quit
}

menu "windowops" {
    "Windows"           f.title
    "Occupy"            f.occupy
    "Occupy All"        f.occupyall
    "Iconify"           f.iconify
    "Refresh"           f.refresh
    "Vanish"            f.vanish
    "Info"              f.identify
    "Focus"             f.focus
    "Unfocus"           f.unfocus
    ""                  f.separator
    "Resize"            f.resize
    "Move"              f.move
    "Adopt Window"      f.adoptwindow
    "Animate"           f.startanimation
    "Don't animate"     f.stopanimation
    ""                  f.separator
    "Send Delete"       f.delete
    "Kill Window"       f.destroy
    "Pin menu"          f.pin
}

menu "projects"
{
    "Projects"    f.title
    ""            f.separator
}

menu "windowmenu" {
    "Occupy ..."        f.occupy
    "Occupy All"        f.occupyall
    "Iconify"           f.iconify
    "RaiseLower"        f.raiselower
    "Refresh"           f.winrefresh
    "Zoom"              f.menu "Zoom"
    "Vanish"            f.vanish
    "Focus"             f.focus
    "Unfocus"           f.unfocus
    ""                  f.separator
    "Send Delete"       f.delete
    "Kill Window"       f.destroy
    "Resize..."         f.resize
    "Move..."           f.move
}

menu "iconmenu" {
    "Actions"           f.title
    ""                  f.separator
    "Restore"           f.iconify
    "Move"              f.move
    "Occupy ..."        f.occupy
    "Occupy All"        f.occupyall
    ""                  f.separator
    "Send Delete"       f.delete
    "Kill Window"       f.destroy
}

Reply via email to