In the event structures the real window id will be used anyway.
- * $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)
*
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
#include <Ecore.h>
#include <Ecore_X.h>
#include <Ecore.h>
#include <Ecore_X.h>
#include "../ecore/rb_ecore.h"
#include "../ecore/rb_event_handler.h"
#include "../ecore/rb_ecore.h"
#include "../ecore/rb_event_handler.h"
void Init_ecore_x (void)
{
VALUE c;
void Init_ecore_x (void)
{
VALUE c;
Init_Window ();
/* now create the default root window object */
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);
OBJ_FREEZE (default_root);
rb_global_variable (&default_root);