We used to call DefaultRootWindow, but ecore_x needs to treat 0 as a
reference to the root window, too.
/*
- * $Id: rb_ecore_x.c 77 2004-08-19 17:39:29Z tilman $
+ * $Id: rb_ecore_x.c 80 2004-08-21 09:41:43Z 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)
{
- Ecore_X_Window w;
VALUE c;
rb_require ("ecore");
Init_Window ();
/* now create the default root window object */
- w = DefaultRootWindow (ecore_x_display_get ());
- default_root = TO_ECORE_X_WINDOW (Qnil, w);
+ default_root = TO_ECORE_X_WINDOW (Qnil, 0);
OBJ_FREEZE (default_root);
rb_global_variable (&default_root);