There seems to be some kind of bug in the Smart placement code. The placement
of windows gets messed up if there is an iconized window with no icon. To
demonstrate, try this. Add this to the end of your .fvwm2rc or via FvwmTalk:
Style "*" NoIcon
GlobalOpts SmartPlacementIsReallySmart
Now make your desktop mostly empty. Start some program and iconize it, then
start a second copy. It should appear right where the first one did, but
instead it will appear at some other odd place.
The fvwm2 code is really a mess to me, but the problem looks like the function
test_fit in placement.c
There is some code that does this:
if((testw->flags & ICONIFIED)&&
(testw->icon_w)) {
if(testw->flags & ICON_UNMAPPED)
continue;
... stuff with icon position ...
} else {
... stuff with window position ...
}
It looks like iconified windows with no icon will take the branch that uses
the window position for calculations. Here is a patch that seems to have
fixed it for me.
diff fvwm-2.1.5/fvwm/placement.c fvwm-2.1.5.new/fvwm/placement.c
320,321c320
< if((testw->flags & ICONIFIED)&&
< (testw->icon_w))
---
> if(testw->flags & ICONIFIED)
323c322
< if(testw->flags & ICON_UNMAPPED)
---
> if((testw->flags & ICON_UNMAPPED) || !(testw->icon_w))
--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Dec 30 1998 - 11:05:43 GMT