home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Enlightenment
/
enl14.tgz
/
enl14.tar
/
enl14
/
root.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-11-10
|
421b
|
21 lines
#include "enl.h"
Root *SetupRoot()
{
Root *r;
XWindowAttributes att;
r=Emalloc(sizeof(Root));
if (!r) return NULL;
r->name=duplicate("ROOT");
r->display=disp;
r->displayname=duplicate(DisplayString(disp));
r->win=DefaultRootWindow(disp);
XGetWindowAttributes(disp,r->win,&att);
r->width=att.width;
r->height=att.height;
r->visual=att.visual;
r->depth=att.depth;
return r;
}