File: init.c

package info (click to toggle)
enlightenment 0.14-6
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,620 kB
  • ctags: 1,387
  • sloc: ansic: 15,166; perl: 1,628; sh: 396; makefile: 198
file content (18 lines) | stat: -rw-r--r-- 451 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "E.h"

void
SetupInit()
{
   int                 r, g, b;

   EDBUG(5, "SetupInit");
   init_win = ECreateWindow(root.win, 0, 0, root.w, root.h, 0);
   r = init_conf.bgcolor.r;
   g = init_conf.bgcolor.g;
   b = init_conf.bgcolor.b;
   init_conf.bgcolor.pixel = Imlib_best_color_match(id, &r, &g, &b);
   XSetWindowBackground(disp, init_win, init_conf.bgcolor.pixel);
   XMapWindow(disp, init_win);
   XSync(disp, False);
   EDBUG_RETURN_;
}