Ecore_Evas (wayland_shm): Don't issue a surface move if the ecore_evas
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 12 Jan 2012 00:06:37 +0000 (00:06 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 12 Jan 2012 00:06:37 +0000 (00:06 +0000)
is not visible (has no surface).

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@67104 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_wayland_shm.c

index b449377..2f18299 100644 (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);
 }