Path: utzoo!attcan!uunet!yale!husc6!rice!sun-spots-request From: josh@sun.com (Joshua Axelrod) Newsgroups: comp.sys.sun Subject: Re: REFRESHING SUNTOOLS Message-ID: <8901171839.AA12478@citation.sun.com> Date: 24 Jan 89 00:49:06 GMT Sender: usenet@rice.edu Organization: National Institute of Standards & Technology, Gaithersburg, MD Lines: 30 Approved: Sun-Spots@rice.edu Original-Date: Tue, 17 Jan 89 10:39:39 PST X-Sun-Spots-Digest: Volume 7, Issue 116, message 11 of 13 Here is a little hack that will work now. I don't think this will continue to work under future window servers. Josh Axelrod jaxelrod@sun.com #include #include #include main() { Frame frame; int rootfd, fd; struct screen rootscreen; frame = window_create((Window) NULL, FRAME,0); fd = (int) window_get(frame, WIN_FD); (void) win_screenget(fd,&rootscreen); if ((rootfd = open(rootscreen.scr_rootname, O_RDWR)) == -1) { perror("main:open"); exit(1); } wmgr_refreshwindow(rootfd); exit(0); }