[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#725: twm: Fix window placement



Package: twm
Version: 4.2.1-6
Followup-For: Bug #725

The attached patch fixes this long-standing bug.  Please apply before
bug #725 turns 10 years old.  :)

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages twm depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  menu                        2.1.7-2      Provides update-menus functions fo
ii  xlibs                       4.3.0-7      X Window System client libraries m

-- no debconf information
--- xc.old/programs/twm/resize.c	2001-12-14 15:01:09.000000000 -0500
+++ xc/programs/twm/resize.c	2005-03-04 02:31:55.000000000 -0500
@@ -648,8 +648,8 @@
 #endif
 
     ConstrainSize (tmp_win, &dragWidth, &dragHeight);
-    AddingX = dragx;
-    AddingY = dragy;
+    AddingX = dragx - tmp_win->frame_bw;
+    AddingY = dragy - tmp_win->frame_bw;
     AddingW = dragWidth + (2 * tmp_win->frame_bw);
     AddingH = dragHeight + (2 * tmp_win->frame_bw);
 }

Reply to: