FVWM: Window Placement Problem

From: Ben Cohen <bjc23_at_hermes.cam.ac.uk>
Date: Tue, 30 May 2000 22:04:38 +0100 (BST)

(FVWM version 2.2.4)

I found the following post in the mailing list archives after having the
similar problems. Firstly, a new window on an empty screen will appear at
(2,2) not (0,0). Also, a Netscape window (say) that is the full
screen-size will also appear at (2,2) not (0,0).

I have found two things which seem to cause this in placement.c; I am
including a patch which solves the problem as far as I am concerned,
although I imagine it's not the "most correct" solution (but I don't have
time to look deeper into it).

Please tell me whether this is a bug or if I'm doing something wrong...

Thanks,
Ben.

=========

To: fvwm-bug_at_larry.math.uh.edu
Subject: window placement
From: none_at_dunno.com
Date: Mon, 24 Apr 2000 05:11:57 -0500 (CDT)

using smartplacement the first window (i.e. when the page is empty) is
placed on (1,1) whereas all the following ones are placed on (0,0)

=========

*** placement.c Tue May 30 21:48:07 2000
--- placement.c.original Tue May 30 21:46:24 2000
***************
*** 159,166 ****
      rc = False;
      return rc;
    }
- test_x--;
- test_y--;
    *x = test_x;
    *y = test_y;
    return rc;
--- 159,164 ----
***************
*** 633,639 ****
           2*tmp_win->boundary_width> PageRight)
        {
          tmp_win->attr.x = PageRight -tmp_win->attr.width
! - tmp_win->old_bw +tmp_win->bw - 2*tmp_win->boundary_width-2;
          Scr.randomx = 0;
        }
        if(tmp_win->frame_y +
2*tmp_win->boundary_width+tmp_win->title_height
--- 631,637 ----
           2*tmp_win->boundary_width> PageRight)
        {
          tmp_win->attr.x = PageRight -tmp_win->attr.width
! - tmp_win->old_bw +tmp_win->bw - 2*tmp_win->boundary_width;
          Scr.randomx = 0;
        }
        if(tmp_win->frame_y +
2*tmp_win->boundary_width+tmp_win->title_height
***************
*** 641,647 ****
        {
          tmp_win->attr.y = PageBottom -tmp_win->attr.height
            - tmp_win->old_bw +tmp_win->bw - tmp_win->title_height -
! 2*tmp_win->boundary_width-2;
          Scr.randomy = 0;
        }
  
--- 639,645 ----
        {
          tmp_win->attr.y = PageBottom -tmp_win->attr.height
            - tmp_win->old_bw +tmp_win->bw - tmp_win->title_height -
! 2*tmp_win->boundary_width;;
          Scr.randomy = 0;
        }


--
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 Tue May 30 2000 - 16:04:28 BST

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