Subject: Strange auto-raise behavior

From: [email-masked]
Date: Tue, 27 Jul 1999 01:50:19 -0500 (CDT)

Full_Name: Lee Skinol
Version: Current CVS
CVS_Date: 27 Jul 99
OS: RedHat Linux 6.0
X_Server: XFree 3.3.x
Submission from: (NULL) (168.143.0.8)

I've found some sort of auto-raise bug with the latest FVWM.
The bug has been around at least since 2.2, and is in the
current CVS version.  Here's how to reproduce it.

1. Start FVWM with the below configuration file.  The only
lines of interest are:

  Key F3          A       M       Iconify

  AddToFunc RestartFunction
  + I Module FvwmAuto 700

  AddToFunc InitFunction
  + I Module FvwmAuto 700

2. From the FVWM menu, start an xterm, then start Netscape
from the xterm.  Dismiss the xterm.

3. In Netscape, go to www.excite.com.

4. Open two new Netscape windows (Alt-N from Netscape's menu)
and go to www.infoseek.com and www.altavista.com, respectively.

5. Resize all of the Netscape windows to occupy most of the
screen.  Now we have three Netscape windows each having a 
unique title.  (This problem occurs with any client, but
Netscape is easy to set up).

6. Now using the Alt-Tab windowlist, raise the windows 
in this order - Excite, Infoseek, Altavista; when each
window raises, press Alt-F3 to iconify each in turn.  Now all 
three windows are iconified.  The Alt-Tab windowlist shows:

  (1. Excite)
  (2. Altavista)
  (3. Infoseek) 

7. Next, using the Alt-Tab windowlist, de-iconify the 
Altavista window.  Then, also using the Alt-Tab
windowlist, de-iconify the Excite window.  Now the Excite
window is on top of the Altavista window, as expected.

8. Press Alt-F3 to iconify the (currently on top) Excite
window.  Now Altavista is up, Excite is iconified.

9. Using the Alt-Tab windowlist, de-iconify the Excite
window once more.

What you'd expect to happen here is that Excite would
de-iconify and now be on top.  Instead, the Excite window
de-iconifies, and instantaneously lowers below the 
Altavista window.

This only happens with autoraise turned on, and is extremely
annoying.

Please let me know if there are any other details needed.

Thanks!

[.fvwm2rc included below]

Key F3          A       M       Iconify

# some simple default mouse bindings:
#   for the root window:
Mouse 1 R       A       Menu MenuFvwmRoot Nop
Mouse 2 R       A       Menu MenuFvwmWindowOps Nop
Mouse 3 R       A       WindowList

#   for the title bar buttons:
Mouse 0 1       A       Menu MenuFvwmWindowOps2 Close
Mouse 0 2       A       FuncFvwmMaximize
Mouse 0 4       A       Iconify

#   for other parts of the window/borders/icons:
Mouse 1 F       A       FuncFvwmResizeOrRaise
Mouse 1 TS      A       FuncFvwmMoveOrRaise
Mouse 1 I       A       FuncFvwmMoveOrIconify
Mouse 2 I       A       Iconify
Mouse 2 FST     A       Menu MenuFvwmWindowOps2 Nop
Mouse 3 TSIF    A       RaiseLower

AddToFunc RestartFunction
 + I Module FvwmAuto 700

AddToFunc InitFunction
 + I Module FvwmAuto 700

######################## Menus ###################
DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot  "Root Menu"             Title
+                       "&1. XTerm"             Exec exec xterm
+                       "&2. Rxvt"              Exec exec rxvt
+                       ""              Nop
+                       "&R. Remote Logins"     Popup MenuFvwmLogins
+                       ""              Nop
+                       "&U. Utilities"         Popup MenuFvwmUtilities
+                       ""              Nop
+                       "&M. Fvwm Modules"      Popup MenuFvwmModules
+                       "&W. Fvwm Window Ops"   Popup MenuFvwmWindowOps
+                       "&S. Fvwm Config Ops"   Popup MenuFvwmConfig
+                       ""              Nop
+                       "&F. Refresh Screen"   Refresh
+                       "&C. Recapture Screen" Recapture
+                       ""              Nop
+                       "&X. Exit Fvwm" Popup MenuFvwmQuitVerify

DestroyMenu MenuFvwmQuitVerify
AddToMenu MenuFvwmQuitVerify "Really Quit Fvwm?" Title
+ "&Q. Yes, Really Quit" Quit
+ ""                     Nop
+ "&R. Restart Fvwm2"    Restart fvwm2
+ ""                     Nop
+ "&T. Start twm"        Restart twm
+ "&C. Start ctwm"       Restart ctwm
+ "&2. Start tvtwm"      Restart tvtwm
+ "&V. Start vtwm"       Restart vtwm
+ "&M. Start mwm"        Restart mwm
+ "&O. Start olwm"       Restart /usr/openwin/bin/olwm
+ ""                     Nop
+ "&X. Just an Xterm"    Restart xterm
+ ""                     Nop
+ "&N. No, Don't Quit"   Nop

AddToFunc "InitFunction" I Module FvwmAnimate
AddToFunc "RestartFunction" I Module FvwmAnimate
AddToFunc "SessionInitFunction" I Module FvwmAnimate
AddToFunc "SessionRestartFunction" I Module FvwmAnimate

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]