From 659a1ceff63839daf1fc46e7972dbfa58d5d1ade Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 21 Aug 2004 09:41:43 +0000 Subject: [PATCH] When we create the root window object, just pass 0 for the window id. 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ecore_x/rb_ecore_x.c b/src/ecore_x/rb_ecore_x.c index 5df711e..e90ff98 100644 --- a/src/ecore_x/rb_ecore_x.c +++ b/src/ecore_x/rb_ecore_x.c @@ -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 #include -#include #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); -- 2.30.2