Thread View: comp.sources.bugs
1 messages
1 total messages
Started by Tim Ramsey
Thu, 30 Jul 1992 11:54
Patch to vtwm 5.1 to fix VirtualDesktop geometry bug
Author: Tim Ramsey
Date: Thu, 30 Jul 1992 11:54
Date: Thu, 30 Jul 1992 11:54
53 lines
1947 bytes
1947 bytes
I just compiled vtwm 5.1 (which I fetched from export.lcs.mit.edu).
When I started it up it put my virtual desktop window on the left
side of the screen instead of on the right where I told it to go:
VirtualDesktop "150x100-0+0" 20
It ignored the "-0" in the geometry string. Here's my attempt at a fix:
*** desktop.c.orig Wed Feb 19 10:50:31 1992
--- desktop.c Thu Jul 30 06:42:13 1992
***************
*** 494,499 ****
--- 494,515 ----
return;
}
+ /* tar@math.ksu.edu: fix handling of -0 X and Y geometry */
+ if (JunkMask & XValue) {
+ if (JunkMask & XNegative) {
+ Scr->VirtualDesktopDX = Scr->MyDisplayWidth
+ - JunkWidth - (2 * Scr->BorderWidth) + JunkX;
+ }
+ else Scr->VirtualDesktopDX = JunkX;
+ }
+ if (JunkMask & YValue) {
+ if (JunkMask & YNegative) {
+ Scr->VirtualDesktopDY = Scr->MyDisplayHeight
+ - JunkHeight - (2 * Scr->BorderWidth) + JunkY;
+ }
+ else Scr->VirtualDesktopDY = JunkY;
+ }
+
JunkWidth *= Scr->VirtualDesktopDScale;
JunkHeight *= Scr->VirtualDesktopDScale;
***************
*** 510,520 ****
Scr->VirtualDesktopWidth = JunkWidth;
Scr->VirtualDesktopHeight = JunkHeight;
-
- if (JunkMask & XValue)
- Scr->VirtualDesktopDX = JunkX;
- if (JunkMask & YValue)
- Scr->VirtualDesktopDY = JunkY;
/* all of the values looked reasonable */
Scr->Virtual = TRUE;
--- 526,531 ----
--
Tim Ramsey, 913.532.6750
Department of Mathematics
Kansas State University
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads