When we create the root window object, just pass 0 for the window id.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 21 Aug 2004 09:41:43 +0000 (09:41 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sat, 21 Aug 2004 09:41:43 +0000 (09:41 +0000)
We used to call DefaultRootWindow, but ecore_x needs to treat 0 as a
reference to the root window, too.

src/ecore_x/rb_ecore_x.c

index 5df711ed2aec94aa492a501ea8ddc08ec4598c49..e90ff98f5fb1ad3c0da567f89c71c26c26bf6ae3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $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)
  *
@@ -22,7 +22,6 @@
 
 #include <Ecore.h>
 #include <Ecore_X.h>
-#include <X11/Xlib.h>
 
 #include "../ecore/rb_ecore.h"
 #include "../ecore/rb_event_handler.h"
@@ -59,7 +58,6 @@ static VALUE c_ev_win_show_req_init (VALUE self, VALUE event)
 
 void Init_ecore_x (void)
 {
-       Ecore_X_Window w;
        VALUE c;
 
        rb_require ("ecore");
@@ -78,8 +76,7 @@ void Init_ecore_x (void)
        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);