/*
- * $Id: rb_ecore_x.c 91 2004-08-22 23:06:05Z tilman $
+ * $Id: rb_ecore_x.c 94 2004-08-23 10:53:25Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
#include <Ecore.h>
#include <Ecore_X.h>
+#include <X11/Xlib.h>
#include "../ecore/rb_ecore.h"
#include "../ecore/rb_event_handler.h"
void Init_ecore_x (void)
{
VALUE c;
+ Ecore_X_Window w;
rb_require ("ecore");
Init_Window ();
/* now create the default root window object */
- default_root = TO_ECORE_X_WINDOW (Qnil, 0);
+ w = DefaultRootWindow (ecore_x_display_get ());
+ default_root = TO_ECORE_X_WINDOW (Qnil, w);
OBJ_FREEZE (default_root);
rb_global_variable (&default_root);