Debian bug report logs - #725
twm places windows incorrectly

Package: xbase; Reported by: iwj10@cus.cam.ac.uk (Ian Jackson); 212 days old.
Bug reassigned from package `xbaseR6' to `xbase'. Request was from imurdock@debian.org (Ian Murdock) to debian-bugs-request@pixar.com. Full text available.

Message received at debian-bugs:


From cus.cam.ac.uk!iwj10 Sun Apr  2 06:07:35 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0rvPNO-0002TfC; Sun, 2 Apr 95 06:07 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA01746
  (5.65c/IDA-1.4.4 for <debian-bugs@pixar.com>); Sun, 2 Apr 1995 06:07:27 -0700
Received: by bootes.cus.cam.ac.uk 
	(Smail-3.1.29.0 #30) id m0rvPKG-000C01C; Sun, 2 Apr 95 14:04 BST
Received: by chiark
	id m0rvFeq-0000YZZ
	(Debian /\oo/\ Smail3.1.29.1 #29.27); Sun, 2 Apr 95 03:44 BST
Message-Id: <m0rvFeq-0000YZZ.ijackson@nyx.cs.du.edu>
Date: Sun, 2 Apr 95 03:44 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: Debian bugs submission address <debian-bugs@pixar.com>
Subject: twm places windows incorrectly

Package: xbaseR6
Version: 0.93 (XFree86[tm] 3.1.1) -7

I have DontMoveOff set in my .twmrc, and don't have RandomPlacement.

When I place a window with the left mouse button while pushing it up
against the it edge of the screen it is placed correctly.

However, if I place it with the middle button (for example, because I
want to drag out one of the other edges), twm places the window too
far to the right by the width of its border (that is, the border that
twm will place around the window).

Attached is a copy of my .twmrc.

(BTW, I've had this problem with every version of twm I've ever
used ...)

Ian.


#
# Ian's twm configuration file.
#

# RandomPlacement
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-*-*-*"
IconifyByUnmapping
NoCaseSensitive
IconManagerGeometry "119x286+0+0"
NoDefaults
DontMoveOff
OpaqueMove
Zoom
NoRaiseOnMove
NoRaiseOnResize
SortIconManager
NoTitle { "TWM Icon Manager" "xclock" "xload" }
DontSqueezeTitle { "emacs" }
SqueezeTitle
RestartPreviousState
WarpCursor
Function "select" { f.iconify f.deiconify }
WindowFunction f.function "select"
WindowRing { "emacs" "XTerm" }

Cursors
{
	Frame		"crosshair"
	Title		"crosshair"
	Icon		"crosshair"
	IconMgr		"crosshair"
	Move		"fleur"
	Resize		"fleur"
	Menu		"sb_left_arrow"
	Button		"hand2"
	Wait		"watch"
	Select		"dot"
	Destroy		"pirate"
}

Color
{
    BorderColor "yellow" { "emacs: root@chiark" "magenta" "root-xterm" "magenta" }
    DefaultBackground "black"
    DefaultForeground "white"
    TitleBackground "midnight blue"
    TitleForeground "light steel blue"
    MenuBackground "midnight blue"
    MenuForeground "light steel blue"
    MenuTitleBackground "midnight blue"
    MenuTitleForeground "light steel blue"
    IconBackground "midnight blue"
    IconForeground "light steel blue"
    IconBorderColor "red"
    IconManagerBackground "orange1"
    IconManagerForeground "black"
    BorderTileForeground "red"
    BorderTileBackground "red"
}

Monochrome
{
    BorderColor "black"
    DefaultBackground "black"
    DefaultForeground "white"
    TitleBackground "white"
    TitleForeground "black"
    MenuBackground "black"
    MenuForeground "white"
    MenuTitleBackground "black"
    MenuTitleForeground "white"
    IconBackground "black"
    IconForeground "white"
    IconBorderColor "white"
    IconManagerBackground "white"
    IconManagerForeground "black"
    BorderTileForeground "black"
    BorderTileBackground "white"
}

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

# Root window buttons
Button1 =	: root		: f.menu "shells"
Button2 =	: root		: f.menu "TwmWindows"
Button3 =	: root		: f.menu "programs"
Button1 = m   	: root		: f.unfocus

# Per window buttons
Button1 = 		: icon|iconmgr|frame|title	: f.function "move-or-raise"
Button2 =		: icon|iconmgr|frame|title	: f.function "forcemove-or-lower"
Button3 =		: icon|iconmgr|frame|title	: f.menu "windowmenu"
Button1 = shift		: icon|iconmgr|frame|title	: f.iconify
Button2 = shift 	: icon|iconmgr|frame|title	: f.resize
Button3 = shift 	: icon|iconmgr|frame|title	: f.zoom
Button1 = m   		: icon|iconmgr|frame|title	: f.focus
Button3 = m   		: icon|iconmgr|frame|title	: f.saveyourself
Button1 = control	: icon|iconmgr|frame|title	: f.forcemove
Button3 = control	: icon|iconmgr|frame|title	: f.delete
Button3 = control|shift	: icon|iconmgr|frame|title	: f.destroy
Button1 = control|shift|m : window|frame|title		: f.destroy
Button2 = control|shift|m : window|frame|title		: f.forcemove
Button3 = control|shift|m : window|frame|title		: f.menu "windowmenu"

# Accelerators out of icon manager
"F1"		=	: icon|window|frame|title	: f.iconify
"F2"		=	: icon|window|frame|title	: f.raiselower
"F3"		=	: all				: f.warpto "emacs"
"F1"		= 	: iconmgr			: f.hideiconmgr
"F2"		= 	: iconmgr			: f.hideiconmgr
"F7"		=	: all				: f.warpring "prev"
"F8"		=	: all				: f.warpring "next"
"Menu"		=	: icon|window|frame|title	: f.showiconmgr

# Accelerators in icon manager
"F7"		=	: iconmgr			: f.previconmgr
"F8"		=	: iconmgr			: f.nexticonmgr
"Menu"		=	: iconmgr			: f.function "select"

# Accelerators everywhere for new clients
"F4"	=		: all	: !"xtrlock &"
"F5"	=		: all	: !"xterm -e newgrp install &"
"F6" 	=		: all	: !"xterm &"
"F6"	= shift		: all	: !"env GROUP=ian really xterm -name root-xterm &"

menu "windowmenu"
{
	"Window Menu"	f.title
	"Close"		f.delete
	"Destroy"	f.destroy
	""		f.nop
	"Icon"		f.iconify
	"Zoom"		f.zoom
	"Resize"	f.resize
	"Identify"	f.identify
	"Move"		f.move
	"Forced move"	f.forcemove
	""		f.nop
	"Mouse help"	f.menu "windowmice"
}

menu "windowmice"
{
        "Modifiers      Leftbutton      Middle      Right"      f.nop
        ""                                                      f.nop
        "                 Move/Raise    Move/Lower   Menu"       f.nop
        " Shift:            Iconify           Resize       Zoom"       f.nop
        "  Meta:       Focus/Unfocus                Checkpoint" f.nop
        " Control:       Forced Move                    Delete"     f.nop
        "Control+Shift:                                    Destroy"    f.nop
}

menu "special"
{
	"Special Menu    "	f.title
	"Show icon list"	f.showiconmgr
	"Hide icon list"	f.hideiconmgr
	""			f.nop
#	"Lockscreen"		!"xpadlock &"
	"Refresh"		f.refresh
	""			f.nop
	"Kill twm"		f.quit
	"Restart"		f.restart
}

menu "shells"
{
	"Shells"	f.title
	"Ian (ian)"	!"xterm &"
	"Ian (install)"	!"xterm -e newgrp install &"
	"Really"	!"env GROUP=ian really xterm &"

#	"xterm above"	!"xterm -T xterm -n 'xterm u' -geometry 80x17+7+176 &"
#	"xterm below"	!"xterm -T xterm -n 'xterm d' -geometry 80x25+0-50 &"
#	"xterm right"	!"xterm -T xterm -n 'xterm r' -geometry 80x25-0-0 &"
#	"xterm kana"	!"xterm -T 'xterm kana.10x20' -n kana -fn kana.10x20 &"
}

menu "programs"
{
   "Utilities"		f.title
   "Restart Emacs"	!"emacs -f make-session &"
   "Really Emacs"	!"really emacs -wn 'emacs: root@chiark' &"
#  "Shells"		f.menu "shells"
#  "Hosts"		f.menu "hosts"
   "Management"		f.menu "special"
   "Start Pixie"	!"xterm -geometry 79x23+0+87 -e pgp-pixie &"
   "Start Trn"          !"xterm -geometry 80x45+240+95 -e trn &"
   "Start Workman"	!"workman -geometry +8+8  &"
   "Start Top"		!"xterm -e top &"
   "Start Calc"		!"xcalc &"
   "Start Clock"	!"xclock &"
   "Start Load"		!"xload &"
}

Menu "demos"
{
	"Demos"			f.title
	"Ico"			!"ico &"
	"Maze"			!"maze &"
	"Muncher"		!"muncher &"
	"Plaid"			!"plaid &"
	"Worm"			!"worm &"
	"Colors"		!"xcolors &"
	"Eyes"			!"xeyes &"
	"Life"			!"xlife &"
	"XLogo"			!"xlogo &"
}

Menu "games"
{
	"Games"			f.title
	"Chomp"			!"xchomp &"
	"Cbzone"		!"cbzone &"
	"MazeWar"		!"xterm -e mazewar &"
	"Mille"			!"xmille &"
	"Reversi"		!"reversi &"
	"Roids"			!"roids &"
	"Robots"		!"xrobots &"
	"Shanghai"		!"xmj &"
	"Solitaire"		!"xsol &"
	"Spider"		!"spider &"
}

Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#725; Package xbaseR6. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov