From: veit@du9ds3.uni-duisburg.de (Holger Veit)
Newsgroups: comp.unix.bsd
Subject: Re: XView - how much of it is available?
Date: 11 Nov 92 08:42:52 GMT
Organization: Uni-Duisburg FB9 Datenverarbeitung
Reply-To: veit@du9ds3.uni-duisburg.de
NNTP-Posting-Host: du9ds3.uni-duisburg.de
Keywords: xview openlook

In <veit.721419366@du9ds3> veit@du9ds3.uni-duisburg.de (Holger Veit) writes:
>In <1992Nov10.172651.23663@Urmel.Informatik.RWTH-Aachen.DE> kuku@acds.physik.rwth-aachen.de (Christoph Kukulies) writes:
>>I saw some mentioning of Xview lately.
>>   o how much has been ported?
>>   o Where is the site carrying the port?
>>   o Is the olwm Window Manager available? 
>I am going to start a new attempt to crack this monster tonite, and if
>I ever succeed, it will be made available. Olwm seems to be the only
>part that works without problems.

>Holger

Addendum: cmdtool crashes the system currently, when RETURN is hit. I
suspect, that some fixes in textsw are foul, will look at it.

Here is an interim fix for OLVWM, the virtual desktop WM, which seems to
                             ^ !!
work fine. Ah, I forgot one patch: There may be some \<space> lines in
the Imakefile which have to be corrected manually.

FIXES FOR OLVWM (reference: /pub/X11/olvwm.tar.Z from ftp.uni-duisburg.de)

*** cmdstream.c.old	Wed Nov 11 03:29:56 1992
--- cmdstream.c	Wed Nov 11 03:30:37 1992
***************
*** 232,239 ****
  			if (ptr == valuestr)
  				status = FALSE;
  			break;
! 	case FLOAT:	 attr->value.fval = (float)strtod(valuestr,&ptr);
! 			if (ptr == valuestr)
  				status = FALSE;
  			break;
  	case STRING:	attr->value.sval = MemNewString(valuestr);
--- 232,238 ----
  			if (ptr == valuestr)
  				status = FALSE;
  			break;
! 	case FLOAT:	if (sscanf(valuestr,"%f",&attr->value.fval) != 1)
  				status = FALSE;
  			break;
  	case STRING:	attr->value.sval = MemNewString(valuestr);
*** moveresize.c.old	Sat Jan  4 00:50:58 1992
--- moveresize.c	Wed Nov 11 03:00:18 1992
***************
*** 305,311 ****
  	    return NULL;
      }
      new = XCreateRegion();
!     XUnionRectWithRegion(rect, new, new);
      XSubtractRegion(mstuff->region, new, mstuff->region);
      XDestroyRegion(new);
      return NULL;
--- 305,311 ----
  	    return NULL;
      }
      new = XCreateRegion();
!     XUnionRectWithRegion(&rect, new, new);
      XSubtractRegion(mstuff->region, new, mstuff->region);
      XDestroyRegion(new);
      return NULL;
***************
*** 426,432 ****
          if (mstuff.dragwin) {
  	    mstuff.region = XCreateRegion();
  	    /* rect is set up above */
! 	    XUnionRectWithRegion(rect, mstuff.region, mstuff.region);
  	    if (!XQueryTree(dpy, WinRootID(mstuff.frame), &dummy, &dummy,
  			   &mstuff.children, &mstuff.num_children))
  		mstuff.num_children = 0;
--- 426,432 ----
          if (mstuff.dragwin) {
  	    mstuff.region = XCreateRegion();
  	    /* rect is set up above */
! 	    XUnionRectWithRegion(&rect, mstuff.region, mstuff.region);
  	    if (!XQueryTree(dpy, WinRootID(mstuff.frame), &dummy, &dummy,
  			   &mstuff.children, &mstuff.num_children))
  		mstuff.num_children = 0;
*** olvwmrc.y.old	Sat Jan  4 00:50:59 1992
--- olvwmrc.y	Wed Nov 11 03:13:52 1992
***************
*** 13,18 ****
--- 13,20 ----
  #include <X11/Xutil.h>
  #include <X11/keysym.h>
  
+ #define YYDEBUG 1
+ 
  #include "list.h"
  #include "mem.h"
  #include "win.h"
***************
*** 344,350 ****
  	    }
  %%
  /* Programs */
- #define YYDEBUG 1
  #include "parse.c"
  
  extern List	*ActiveClientList;
--- 346,351 ----
*** olwm.c.old	Sat Jan  4 00:50:59 1992
--- olwm.c	Wed Nov 11 03:02:56 1992
***************
*** 505,510 ****
--- 505,513 ----
      if (!XrmGetResource(OlwmDB, namebuf, namebuf, &type, &value))
  	return;
      pid = atoi((char *)value.addr);
+ #ifdef __386BSD__
+ #define MAXPID	32000
+ #endif
      if (pid <= 0 || pid > MAXPID)
  	return;
  
*** parse.l.old	Sat Jan  4 00:50:59 1992
--- parse.l	Wed Nov 11 03:06:26 1992
***************
*** 44,52 ****
  \}	{ return CLOSEBRACE; }
  
  \"[^"]*\"	{
! 	    if (yytext[yyleng - 1] == '\\')
  		yymore();
! 	    else {
  		yylval.sval = strdup(yytext);
  		return WORD;
  	    }
--- 44,52 ----
  \}	{ return CLOSEBRACE; }
  
  \"[^"]*\"	{
! 	    if (yytext[yyleng - 1] == '\\') {
  		yymore();
! 	    } else {
  		yylval.sval = strdup(yytext);
  		return WORD;
  	    }
***************
*** 53,61 ****
  	}
  
  \'[^']*\'	{
! 	    if (yytext[yyleng - 1] == '\\')
  		yymore();
! 	    else {
  		yylval.sval = strdup(yytext);
  		return WORD;
  	    }
--- 53,61 ----
  	}
  
  \'[^']*\'	{
! 	    if (yytext[yyleng - 1] == '\\') {
  		yymore();
! 	    } else {
  		yylval.sval = strdup(yytext);
  		return WORD;
  	    }
*** slave.c.old	Sat Jan  4 00:51:00 1992
--- slave.c	Wed Nov 11 03:18:50 1992
***************
*** 73,79 ****
--- 73,83 ----
  	case 0:				/* Slave */
  		dup2(input[0],0);
  		dup2(output[1],1);
+ #ifndef __386BSD__
  		if (getrlimit(RLIMIT_NOFILE,&rlimit) == -1)
+ #else
+ 		if (getrlimit(RLIMIT_OFILE,&rlimit) == -1)
+ #endif
  			maxfd = 0;
  		else
  			maxfd = rlimit.rlim_cur;	
*** virtual.c.old	Wed Nov 11 03:23:08 1992
--- virtual.c	Wed Nov 11 03:22:55 1992
***************
*** 5,10 ****
--- 5,13 ----
  
  #include <stdio.h>
  #include <string.h>
+ #ifdef __386BSD__
+ #include <sys/types.h>
+ #endif
  #include <dirent.h>
  #include <X11/Xos.h>
  #include <X11/Xlib.h>
-- 
|  |   / Dr. Holger Veit         | INTERNET: veit@du9ds3.uni-duisburg.de
|__|  /  University of Duisburg  | "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|  | /   Dept. of Electr. Eng.   |   Sorry, the above really good fortune has
|  |/    Inst. f. Dataprocessing |      been CENSORED because of obscenity"
Newsgroups: comp.unix.bsd