ok fixed visibility event. now it works as planned.

SVN revision: 31832
This commit is contained in:
Carsten Haitzler 2007-09-27 15:43:08 +00:00
parent e8a3ed6312
commit 7a7607d656
2 changed files with 3 additions and 2 deletions

View File

@ -757,7 +757,7 @@ _ecore_evas_x_event_visibility_change(void *data __UNUSED__, int type __UNUSED__
e = event;
ee = _ecore_evas_x_match(e->win);
if ((!ee) || (ee->ignore_events)) return 1; /* pass on event */
if (!ee) return 1; /* pass on event */
if (e->win != ee->engine.x.win) return 1;
// printf("VIS CHANGE OBSCURED: %p %i\n", ee, e->fully_obscured);
if (e->fully_obscured) ee->draw_ok = 0;
@ -1106,6 +1106,7 @@ _ecore_evas_x_event_window_hide(void *data __UNUSED__, int type __UNUSED__, void
if (!ee) return 1; /* pass on event */
if (e->win != ee->engine.x.win) return 1;
if (!ee->visible) return 0; /* dont pass it on */
// printf("HIDE EVENT %p\n", ee);
ee->visible = 0;
ee->draw_ok = 0;
if (ee->func.fn_hide) ee->func.fn_hide(ee);

View File

@ -769,7 +769,7 @@ _ecore_x_event_handle_graphics_expose(XEvent *xevent)
void
_ecore_x_event_handle_visibility_notify(XEvent *xevent)
{
if (xevent->xvisibility.state != VisibilityPartiallyObscured)
// if (xevent->xvisibility.state != VisibilityPartiallyObscured)
{
Ecore_X_Event_Window_Visibility_Change *e;