home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!usc!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!ramey
- From: ramey@jello.csc.ti.com (Joe Ramey)
- Subject: changes to vtwm to make NotVirtualGeometries work properly
- Message-ID: <RAMEY.92Aug25140145@jello.csc.ti.com>
- Originator: ramey@jello
- Lines: 52
- Sender: usenet@csc.ti.com
- Nntp-Posting-Host: jello
- Organization: Texas Instruments
- Date: Tue, 25 Aug 1992 19:01:53 GMT
-
- Some of our users recently switched from an old version of vtwm
- (Virtual Desktop TWM - Beta Release) to the latest version available
- from export.lcs.mit.edu (Virtual Desktop TWM (VTWM) - R5 Release (5)).
- They had trouble using the same .vtwmrc file with both versions,
- specifically their problem was with getting windows to appear where
- they wanted them. One of them found the undocumented
- `NotVirtualGeometries' option in the vtwm source. We had to make
- these changes to get it to work properly:
-
-
- *** parse.c.ORIG Wed Feb 19 11:39:11 1992
- --- parse.c Mon Aug 10 17:40:23 1992
- ***************
- *** 773,779 ****
-
- case kw0_NotVirtualGeometries:
- Scr->GeometriesAreVirtual = FALSE;
- ! break;
- }
-
- return 0;
- --- 773,779 ----
-
- case kw0_NotVirtualGeometries:
- Scr->GeometriesAreVirtual = FALSE;
- ! return 1;
- }
-
- return 0;
- *** add_window.c.ORIG Wed Feb 19 15:14:14 1992
- --- add_window.c Sun Aug 16 17:33:02 1992
- ***************
- *** 335,342 ****
- * regardless of PPosition or UPosition */
- /* if we are dealing with PPosition, then offset by the current real
- * screen offset on the vd */
- ! if (tmp_win->nailed ||
- ! ((tmp_win->hints.flags & PPosition) && (ask_user == FALSE))) {
- tmp_win->attr.x = R_TO_V_X(tmp_win->attr.x);
- tmp_win->attr.y = R_TO_V_Y(tmp_win->attr.y);
- }
- --- 335,342 ----
- * regardless of PPosition or UPosition */
- /* if we are dealing with PPosition, then offset by the current real
- * screen offset on the vd */
- ! if ((Scr->GeometriesAreVirtual) && (tmp_win->nailed ||
- ! ((tmp_win->hints.flags & PPosition) && (ask_user == FALSE)))) {
- tmp_win->attr.x = R_TO_V_X(tmp_win->attr.x);
- tmp_win->attr.y = R_TO_V_Y(tmp_win->attr.y);
- }
-
-
-