Re: FVWM: Can't move a window?

From: Bob Bell <bobbell_at_zk3.dec.com>
Date: Thu, 5 Oct 2000 14:09:02 -0400

On Thu, Oct 05, 2000 at 08:34:39PM +0200, Mikhael Goikhman <migo_at_cortext.co.il> wrote:
> On 04 Oct 2000 17:03:47 -0400, Bob Bell wrote:
> >
> > I just installed fvwm-2.3.21, primarily to make use of the
> > ResizeHintOverride functionality. Now I'm trying (in part) to move a
> > window to 0x0 and having trouble. When running mutt, the following
> > works:
> >
> > AddToFunc Foobar
> > + I Exec rxvt -e mutt
> > + I Wait "mut*"
> > + I Next ("mut*") Move 0 0
> >
> > When Foobar is run, mutt pops up in a window and then moves to the top
> > left. However, when I try the same with my Windows 2000 TS client
> > (which is what I'm trying to get setup here):
> >
> > AddToFunc Windows2000
> > + I Exec wfica -desc "W2000 Desktop (2)" -nosplash -quiet
> > + I Wait "W2000*"
> > + I Next ("W2000*") Move 0 0
> >
> > The resulting window never moves to 0x0. Note that the style on the
> > window is set by:
> >
> > Style "W2000 Desktop*" NoTitle, NoHandles, BorderWidth 0, ResizeHintOverride
> >
> > if that makes a difference.
>
> You should narrow the problem first.
>
> One of 3 things happen:
> 1) Wait is not passed. To test this, add after Wait this line: + I Beep
> 2) Next returns nothing. To test this, write: + I Next ("W2000*") Beep
> 3) Move is not working on this window for some reason
>
> You can use other than Beep test command, like: Exec xmessage "Passed 1".
>
> If [1] - the problem may be in resource names at the window creation time.
> As a side note, the Wait syntax you use (quotes) is only valid after 2.3.16.
> If Wait is not passed, use Ctrl-Alt-Escape to abort Wait.
>
> If [2] - try the following: Next (Wfica, CirculateHit) Beep
>
> If [3] - can you move this window at all using Move command (bound to a
> key/menu)? If no, this window probably has "Override redirection?: Yes"
> as seen in `xwininfo -all`. In this case the problem is in a window.

    Thanks for the testing info. I had already done some testing using
Execs. I have now used your methods to confirm what I've thought. I've
verified that the Wait is passed, and that Next returns appropriately
(with both "W2000*" and "Wfica", btw). The problem is that the Move
doesn't work. However, xwininfo reports "Override redirection?: No" for
the window. Additionally, I can pull up FvwmTalk after the window has
loaded, and the Next..Move command will work.

    I don't know much about X11, but I've got one possible explanation.
When the window first appears, it is centered on the screen. xwininfo
shows that the program supplies a location and a size. Is is possible
that the centering occurs after the Move 0 0 command executes, thereby
cancelling it out? If so, is there a way around this? The only other
explanation I have is a problem in Fvwm2.

-- 
Bob Bell <bobbell_at_zk3.dec.com>
-------------------------------------------------------------------------
 "We all know Linux is great...it does infinite loops in 5 seconds."
   -- Linus Torvalds, creator of the Linux operating system
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Oct 05 2000 - 13:09:22 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:51 BST