Article View: comp.sys.sun
Article #10480Re: REFRESHING SUNTOOLS
From: Joshua Axelrod
Date: Tue, 24 Jan 1989 00:49
Date: Tue, 24 Jan 1989 00:49
30 lines
1080 bytes
1080 bytes
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 <suntool/sunview.h>
#include <suntool/wmgr.h>
#include <sys/file.h>
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);
}
Technical Details
Message-ID:
<8901171839.AA12478@citation.sun.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!yale!husc6!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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