forked from enlightenment/efl
ok fixed visibility event. now it works as planned.
SVN revision: 31832
This commit is contained in:
parent
e8a3ed6312
commit
7a7607d656
|
@ -757,7 +757,7 @@ _ecore_evas_x_event_visibility_change(void *data __UNUSED__, int type __UNUSED__
|
||||||
|
|
||||||
e = event;
|
e = event;
|
||||||
ee = _ecore_evas_x_match(e->win);
|
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;
|
if (e->win != ee->engine.x.win) return 1;
|
||||||
// printf("VIS CHANGE OBSCURED: %p %i\n", ee, e->fully_obscured);
|
// printf("VIS CHANGE OBSCURED: %p %i\n", ee, e->fully_obscured);
|
||||||
if (e->fully_obscured) ee->draw_ok = 0;
|
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 (!ee) return 1; /* pass on event */
|
||||||
if (e->win != ee->engine.x.win) return 1;
|
if (e->win != ee->engine.x.win) return 1;
|
||||||
if (!ee->visible) return 0; /* dont pass it on */
|
if (!ee->visible) return 0; /* dont pass it on */
|
||||||
|
// printf("HIDE EVENT %p\n", ee);
|
||||||
ee->visible = 0;
|
ee->visible = 0;
|
||||||
ee->draw_ok = 0;
|
ee->draw_ok = 0;
|
||||||
if (ee->func.fn_hide) ee->func.fn_hide(ee);
|
if (ee->func.fn_hide) ee->func.fn_hide(ee);
|
||||||
|
|
|
@ -769,7 +769,7 @@ _ecore_x_event_handle_graphics_expose(XEvent *xevent)
|
||||||
void
|
void
|
||||||
_ecore_x_event_handle_visibility_notify(XEvent *xevent)
|
_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;
|
Ecore_X_Event_Window_Visibility_Change *e;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue