Debian Bug report logs - #11463
fvwm2: Race condition in fvwm2 icon box

Package: fvwm; Maintainer for fvwm is Jaimos Skriletz <jaimosskriletz@gmail.com>; Source for fvwm is src:fvwm (PTS, buildd, popcon).

Reported by: <cph@martigny.ai.mit.edu>

Date: Wed, 23 Jul 1997 05:48:02 UTC

Severity: normal

Done: Alexander Kotelnikov <sacha@nwgsm.ru>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Austin Donnelly <and1000@debian.org>:
Bug#11463; Package fvwm2. (full text, mbox, link).


Acknowledgement sent to <cph@martigny.ai.mit.edu>:
New bug report received and forwarded. Copy sent to Austin Donnelly <and1000@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: <cph@martigny.ai.mit.edu>
To: submit@bugs.debian.org
Subject: fvwm2: Race condition in fvwm2 icon box
Date: Wed, 23 Jul 1997 01:36:42 -0400 (EDT)
Package: fvwm2
Version: 2.0.45-BETA-4

When I start X, my init files start up several programs.  Most of these are
things like xclock, xload, etc.  But one of them is an application that
throws up a couple of windows, one of which is iconified.

The icon for the iconified window doesn't always appear in the icon box.
As far as I can tell, there is a race condition: if the icon box is
configured before the icon is created, then the icon goes in the box.
Otherwise, the icon goes in the upper-left hand corner of the screen.

When the icon is misplaced, if I kill the program and restart it, the icon
is properly placed.  Alternatively, if the icon is properly placed, and I
leave the program running and restart fvwm, the icon is misplaced when fvwm
restarts.

The likelihood of the icon being properly placed is very high on my fast
computer, and quite low on my slow one.

All of this information adds up to a race condition in my mind.

IMO, the icon should go in the box regardless of when it is created.

-- System Information
Debian Release: 1.3
Kernel Version: Linux flenser 2.0.29 #1 Fri Jun 13 22:08:45 EDT 1997 i686 unknown

Versions of the packages fvwm2 depends on:
libc5	Version: 5.4.33-3
xlib6	Version: 3.3-3
xpm4.7	Version: 3.4g-9

--- Begin /etc/X11/fvwm2/system.fvwm2rc (modified conffile)
Read /etc/X11/fvwm2/pre.hook
Read .fvwm2/pre.hook
DeskTopSize 3x3
EdgeScroll 0 0
EdgeResistance 0 100
DestroyDecor default-decor
AddToDecor default-decor
+ HilightColor white steelblue
+ WindowFont -adobe-helvetica-bold-r-*-*-12-*
+ ButtonStyle Reset
+ ButtonStyle 2 Vector 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
+ ButtonStyle 4 Vector 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
+ ButtonStyle 6 Vector 2 80x76@0 20x76@1
Style "default-style" UseDecor default-decor, Color black/darkgrey
Style "*" UseStyle default-style
Style "*" BorderWidth 6
Style "*" HandleWidth 6
Style "*" MWMBorder
Style "*" MWMDecor
Style "*" DecorateTransient
Style "*" SmartPlacement
Style "*" RandomPlacement
Style "*" IconBox 0 0 50 -1
Style "Fvwm*" NoTitle
Style "Fvwm*" WindowListSkip
Style "Fvwm*" CirculateSkip
Style "FvwmButtons" Sticky
Style "FvwmIconMan" Sticky
Style "FvwmPager"   Sticky, StaysOnTop, Handles, HandleWidth 5
Style "FvwmIdent" Title
Style "FvwmIdent" WindowListHit
Style "FvwmIdent" CirculateHit
Style "emacs"	Icon gnu-animal.xpm
Style "xterm"	Icon xterm-linux.xpm
Style "ghostview"  Icon gv.xpm
Style "Gnuplot"	Icon graphs.xpm
Style "xcalc"	Icon xcalc.xpm
Style "xbiff"	Icon mail1.xpm
Style "xman"	Icon xman.xpm
Style "xmag"	Icon mag_glass.xpm
Style "Mosaic"     Icon Mosaic.xpm
Style "xpaint"     Icon xpaint.xpm
Style "Manual Page" Icon xman.xpm
Style "xedit"      Icon textedit.xpm
Style "*"	Icon default.xbm
DestroyMenu InitFunction
AddToFunc InitFunction
+ "I" Exec setup-background
Read /etc/X11/fvwm2/init.hook
Read /etc/X11/fvwm2/init-restart.hook
Read .fvwm2/init.hook
Read .fvwm2/init-restart.hook
DestroyMenu RestartFunction
AddToFunc RestartFunction
Read /etc/X11/fvwm2/restart.hook
Read /etc/X11/fvwm2/init-restart.hook
Read .fvwm2/restart.hook
Read .fvwm2/init-restart.hook
MenuStyle black grey white -adobe-helvetica-bold-r-*-*-12-* mwm
AddToMenu /Debian
+ "Main Menu" Title
Read /etc/X11/fvwm2/main-menu-pre.hook
Read .fvwm2/main-menu-pre.hook
Read /etc/X11/fvwm2/menudefs.hook
Read .fvwm2/menudefs.hook
Read /etc/X11/fvwm2/main-menu.hook
Read .fvwm2/main-menu.hook
AddToMenu /Debian
+	""			Nop
+	"Exit Fvwm"		Popup Quit-Verify
DestroyMenu Window-Ops
AddToMenu Window-Ops
+ "Window Ops"			Title		
+ "Move"			Move
+ "Resize"			Resize
+ "Raise"			Raise
+ "Lower"			Lower 
+ "(De)Iconify"			Iconify
+ "(Un)Stick"			Stick		
+ "(Un)Shade"			WindowShade
+ "(Un)Maximize vertical"	Maximize 0 100
+ "(Un)Maximize horizontal"	Maximize 100 0
+ "(Un)Maximize to screen" 	Maximize 100 100
+ ""				Nop  
+ "Destroy"			Destroy
+ "Close"			Close	 
DestroyMenu Quit-Verify
AddToMenu Quit-Verify
+ "Restart Fvwm"	Restart fvwm2
+ ""			Nop
+ "Really quit"		Quit	
Mouse 1	R A Menu /Debian
Mouse 2	R A Menu Window-Ops
Mouse 3	R A WindowList
Mouse 0 T A move-and-raise-or-raiselower
Mouse 0 W M move-and-raise-or-raiselower
Mouse 0 F A resize-or-raiselower
Mouse 0 S A resize-or-raiselower
Mouse 0 I A move-or-winmenu-or-deiconify
Mouse 0 1 A Popup Window-Ops
Mouse 0 2 A Close
Mouse 0 4 A Maximize 0 100
Mouse 0 6 A Iconify
Key Tab		A	M	Next [CurrentDesk !iconic] Focus
Key Tab		A	MS	Prev [CurrentDesk !iconic] Focus
Key Tab		A	CM	Next [CurrentDesk] deiconify-and-focus
Key Tab		A	CMS	Prev [CurrentDesk] deiconify-and-focus
Key Left	A	M	Scroll -100 0
Key Up		A	M	Scroll +0 -100
Key Right	A	M	Scroll +100 +0
Key Down	A	M	Scroll +0 +100
Key F1		A	M	Popup Window-Ops
Key F2		A	M	Popup /Debian
Key F3		A	M	Lower
Key F4		A	M	WindowList
Key F5		A	M	CirculateUp
Key F6		A	M	CirculateDown
Key F7		A	M	Move
Key F8		A	M	Resize
Key F9		A	M	Iconify
Key F10 	A	M	Maximize
DestroyFunc move-or-winmenu-or-deiconify
AddToFunc   move-or-winmenu-or-deiconify
+ "M" Move
+ "C" Popup Window-Ops
+ "D" Iconify
DestroyFunc deiconify-and-focus
AddToFunc   deiconify-and-focus
+ "I" Iconify -1
+ "I" Focus
DestroyFunc deiconify-and-raise
AddToFunc   deiconify-and-raise
+ "I" Iconify -1
+ "I" Raise
DestroyFunc move-or-raiselower	
AddToFunc   move-or-raiselower	
+ "M" Move
+ "C" RaiseLower
DestroyFunc move-and-raise-or-raiselower	
AddToFunc   move-and-raise-or-raiselower	
+ "M" Move
+ "M" Raise
+ "C" RaiseLower
DestroyFunc move-or-raiselower-or-maximize-vertical
AddToFunc   move-or-raiselower-or-maximize-vertical
+ "M" Move
+ "C" RaiseLower
+ "D" Maximize 0 100
DestroyFunc resize-or-raiselower	
AddToFunc   resize-or-raiselower	
+ "M" Resize
+ "C" RaiseLower
*DebianFvwmButtonsFore White
*DebianFvwmButtonsBack DarkSlateGrey
*DebianFvwmButtonsGeometry 430x100-0-0
*DebianFvwmButtonsRows 1
*DebianFvwmButtons(Title Help, Icon xman.xpm, Action 'Exec "Xman" xman &')
*DebianFvwmButtons(Title xterm, Icon xterm.xpm, Action 'Exec "XTerm" xterm &')
*DebianFvwmButtons(Title emacs, Icon gnu-animal.xpm, Action 'Exec "Emacs" emacs &')
*DebianFvwmButtons(2x1, Swallow(UseOld,NoKill) "FvwmPager")
*FvwmPagerBack SlateGrey
*FvwmPagerFore Black
*FvwmPagerFont none
*FvwmPagerHilight SlateBlue4
*FvwmPagerSmallFont -*-times-medium-r-*-*-*-80-*-*-*-*-*-*
*FvwmPagerDeskTopScale 32
Read /etc/X11/fvwm2/post.hook
Read .fvwm2/post.hook

--- End /etc/X11/fvwm2/system.fvwm2rc


Information forwarded to debian-bugs-dist@lists.debian.org, Austin Donnelly <and1000@debian.org>:
Bug#11463; Package fvwm2. (full text, mbox, link).


Acknowledgement sent to Austin Donnelly <austin@greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Austin Donnelly <and1000@debian.org>. (full text, mbox, link).


Message #10 received at 11463@bugs.debian.org (full text, mbox, reply):

From: Austin Donnelly <austin@greenend.org.uk>
To: <cph@martigny.ai.mit.edu>
Cc: 11463@bugs.debian.org
Subject: Re: Bug#11463: fvwm2: Race condition in fvwm2 icon box
Date: Sun, 24 Aug 1997 17:13:45 +0100 (BST)
On Wed, 23 Jul 1997, cph@martigny.ai.mit.edu wrote:

> When I start X, my init files start up several programs.  Most of these are
> things like xclock, xload, etc.  But one of them is an application that
> throws up a couple of windows, one of which is iconified.
> 
> The icon for the iconified window doesn't always appear in the icon box.
> As far as I can tell, there is a race condition: if the icon box is
> configured before the icon is created, then the icon goes in the box.
> Otherwise, the icon goes in the upper-left hand corner of the screen.
> 
> When the icon is misplaced, if I kill the program and restart it, the icon
> is properly placed.  Alternatively, if the icon is properly placed, and I
> leave the program running and restart fvwm, the icon is misplaced when fvwm
> restarts.
> 
> The likelihood of the icon being properly placed is very high on my fast
> computer, and quite low on my slow one.
> 
> All of this information adds up to a race condition in my mind.
> 
> IMO, the icon should go in the box regardless of when it is created.

Thanks for your bug report.  I'm sorry for the delay in getting back
to you, but I've been on holiday recently.

Which sort of icon box are you using?   The standard one defined by
IconBox, or one of FvwmIconMan or FvwmIconBox modules?

Austin


Information forwarded to debian-bugs-dist@lists.debian.org, Austin Donnelly <and1000@debian.org>:
Bug#11463; Package fvwm2. (full text, mbox, link).


Acknowledgement sent to cph@martigny.ai.mit.edu (Chris Hanson):
Extra info received and forwarded to list. Copy sent to Austin Donnelly <and1000@debian.org>. (full text, mbox, link).


Message #15 received at 11463@bugs.debian.org (full text, mbox, reply):

From: cph@martigny.ai.mit.edu (Chris Hanson)
To: austin@greenend.org.uk
Cc: 11463@bugs.debian.org
Subject: Bug#11463: fvwm2: Race condition in fvwm2 icon box
Date: Sun, 24 Aug 1997 13:13:49 -0400 (EDT)
   Date: Sun, 24 Aug 1997 17:13:45 +0100 (BST)
   From: Austin Donnelly <austin@greenend.org.uk>

   Which sort of icon box are you using?   The standard one defined by
   IconBox, or one of FvwmIconMan or FvwmIconBox modules?

I'm using the standard one defined by IconBox.


Bug reassigned from package `fvwm2' to `fvwm'. Request was from Julian Gilbey <J.D.Gilbey@qmw.ac.uk> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Alexander Kotelnikov <sacha@nwgsm.ru>:
You have taken responsibility. (full text, mbox, link).


Notification sent to <cph@martigny.ai.mit.edu>:
Bug acknowledged by developer. (full text, mbox, link).


Message #22 received at 11463-done@bugs.debian.org (full text, mbox, reply):

From: Alexander Kotelnikov <sacha@nwgsm.ru>
To: Debian BTS <11463-done@bugs.debian.org>
Subject: fvwm2: Race condition in fvwm2 icon box
Date: Sat, 05 Jan 2002 20:32:05 +0300
If you want to be sure about what is done earlier: IconBox
configuration or you program execution, you *must* put the execution
in InitFunction. If it is done no problem occur.
-- 
Alexander Kotelnikov
Saint-Petersburg, Russia



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Apr 23 07:12:18 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.