home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sources / bugs / 216 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!math.ksu.edu!deadend
  2. From: tar@math.ksu.edu (Tim Ramsey)
  3. Newsgroups: comp.sources.bugs
  4. Subject: Patch to vtwm 5.1 to fix VirtualDesktop geometry bug
  5. Date: 30 Jul 1992 06:54:06 -0500
  6. Organization: Dept. of Mathematics, Kansas State University
  7. Lines: 53
  8. Message-ID: <158l8uINN7n9@hilbert.math.ksu.edu>
  9. NNTP-Posting-Host: hilbert.math.ksu.edu
  10.  
  11. I just compiled vtwm 5.1 (which I fetched from export.lcs.mit.edu).
  12. When I started it up it put my virtual desktop window on the left
  13. side of the screen instead of on the right where I told it to go:
  14.  
  15.    VirtualDesktop "150x100-0+0" 20
  16.  
  17. It ignored the "-0" in the geometry string.  Here's my attempt at a fix:
  18.  
  19. *** desktop.c.orig    Wed Feb 19 10:50:31 1992
  20. --- desktop.c    Thu Jul 30 06:42:13 1992
  21. ***************
  22. *** 494,499 ****
  23. --- 494,515 ----
  24.           return;
  25.       }
  26.   
  27. +     /* tar@math.ksu.edu: fix handling of -0 X and Y geometry */
  28. +     if (JunkMask & XValue) {
  29. +         if (JunkMask & XNegative) {
  30. +             Scr->VirtualDesktopDX = Scr->MyDisplayWidth
  31. +                 - JunkWidth - (2 * Scr->BorderWidth) + JunkX;
  32. +         }
  33. +         else    Scr->VirtualDesktopDX = JunkX;
  34. +     }
  35. +     if (JunkMask & YValue) {
  36. +         if (JunkMask & YNegative) {
  37. +             Scr->VirtualDesktopDY = Scr->MyDisplayHeight
  38. +                 - JunkHeight - (2 * Scr->BorderWidth) + JunkY;
  39. +         }
  40. +         else    Scr->VirtualDesktopDY = JunkY;
  41. +     }
  42.       JunkWidth *= Scr->VirtualDesktopDScale;
  43.       JunkHeight *= Scr->VirtualDesktopDScale;
  44.   
  45. ***************
  46. *** 510,520 ****
  47.   
  48.       Scr->VirtualDesktopWidth = JunkWidth;
  49.       Scr->VirtualDesktopHeight = JunkHeight;
  50. -     if (JunkMask & XValue)
  51. -             Scr->VirtualDesktopDX = JunkX;
  52. -     if (JunkMask & YValue)
  53. -             Scr->VirtualDesktopDY = JunkY;
  54.   
  55.       /* all of the values looked reasonable */
  56.       Scr->Virtual = TRUE;
  57. --- 526,531 ----
  58. -- 
  59.     Tim Ramsey, 913.532.6750
  60.     Department of Mathematics
  61.     Kansas State University
  62.