Ecore_Evas (wayland_shm): Don't issue a surface move if the ecore_evas

is not visible (has no surface).



SVN revision: 67104
This commit is contained in:
Christopher Michael 2012-01-12 00:06:37 +00:00
parent 4e74c624d8
commit cf6322e938
1 changed files with 6 additions and 3 deletions

View File

@ -453,9 +453,12 @@ _ecore_evas_wl_move(Ecore_Evas *ee, int x, int y)
ee->x = x;
ee->y = y;
wl_shell_surface_move(ee->engine.wl.shell_surface,
ecore_wl_input_device_get(),
_ecore_evas_wl_btn_timestamp);
if (ee->engine.wl.shell_surface)
{
wl_shell_surface_move(ee->engine.wl.shell_surface,
ecore_wl_input_device_get(),
_ecore_evas_wl_btn_timestamp);
}
if (ee->func.fn_move) ee->func.fn_move(ee);
}