REFRESHING SUNTOOLS
Joshua Axelrod
josh at sun.com
Tue Jan 24 10:49:06 AEST 1989
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 at 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);
}
More information about the Comp.sys.sun
mailing list