Re: FVWM: window placement on deiconification

From: R Tapia <tapia_at_swcp.com>
Date: Wed, 10 May 2000 04:21:04 -0600 (MDT)

On Tue, 9 May 2000, Michael Han wrote:

> Previously from R Tapia
> >This isn't a bug report, I'm just curious about the reason for a
> >particular aspect of FVWM's behavior.
> >
> >Throughout 2.2 and in 2.3, the following happens:
> >
> > I move a window so that the top is not visible on the current page
> > and then iconify it. When I deiconify it, the window appears
> > with the top visible at the bottom of the current page.
>
> I can't reproduce this. Are you leaving anything out of your
> description?

Uh, a lot, really. I just sent another message to the list that explains
what I left out and how I was confused.

> >I've always found this a bit disconserting. Whenever I install a new
> >version of fvwm2, I "fix" this behavior by commenting out a couple of
> >lines of code.
>
> Care to share?

In 2.2, I was commenting out:

    SetupFrame(t,new_x,new_y,
               t->frame_width,t->frame_height,False);
    t->Desk = Scr.CurrentDesk; */

inside the first 'if' in the function AutoPlace. That may have been
breaking something. I never noticed any breakage, but...

In 2.3.16, I had been commenting out some code in move_window_doit.
However, I just noticed tonight that it definitely was breaking some
window placement. Currently, I'm changing the following lines in
move_window_doit:

            if(FinalX < 0)
              FinalX += Scr.MyDisplayWidth;
                if(FinalY < 0)
                    FinalY += Scr.MyDisplayHeight;

to:

            if((FinalX + (int) width) < 0)
                    FinalX += Scr.MyDisplayWidth;
            if ((FinalY + (int) height) < 0)
              FinalY += Scr.MyDisplayHeight;

and I haven't noticed any breakage. I also don't know that that's anywhere
near the Right Thing(tm).

> >At first, I thought that it was an obvious bug and that it would
> >eventually be fixed. As new versions came out, I assumed that that was the
> >behavior that the developers wanted.
> >
> >I'm just wondering, is this a bug, a feature, or am I doing something
> >silly to make FVWM place deiconified windows as above?

>
> Well, personally I'd say this is wrong, and doubt that anyone
> disagrees. But I think this is the first time anyone's reported this.

Right, sorry about that. In the mail that I just sent, I described a way
to reproduce what I was seeing...not what I said I was seeing.

Cheers,

Ron

--
Outlook is conclusive proof that Microsoft's desktop monopoly
has harmed consumers.
--
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 Wed May 10 2000 - 05:21:45 BST

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