devilhorns pushed a commit to branch master.

commit bd9da64552b3e5eac07ae071e5e32171be44ac14
Author: Chris Michael <[email protected]>
Date:   Fri Aug 16 09:51:20 2013 +0100

    No need to allocate a grab here if we are just setting busy cursor.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/wl_desktop_shell/e_mod_main.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/modules/wl_desktop_shell/e_mod_main.c 
b/src/modules/wl_desktop_shell/e_mod_main.c
index 161dbc1..f7285ea 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -363,19 +363,12 @@ _e_wl_shell_cb_pointer_focus(struct wl_listener *listener 
EINA_UNUSED, void *dat
     * should set the busy cursor on it */
    if ((ews->mapped) && (ews->shell_surface) && (!ews->shell_surface->active))
      {
-        E_Wayland_Shell_Grab *grab = NULL;
         E_Wayland_Desktop_Shell *shell;
 
-        /* try to allocate space for our grab structure */
-        if (!(grab = E_NEW(E_Wayland_Shell_Grab, 1))) return;
-
-        /* set grab properties */
-        grab->x = ptr->grab_x;
-        grab->y = ptr->grab_y;
-
         /* set busy cursor */
         shell = ews->shell_surface->shell;
-        e_desktop_shell_send_grab_cursor(shell->wl.resource, 
E_DESKTOP_SHELL_CURSOR_BUSY);
+        e_desktop_shell_send_grab_cursor(shell->wl.resource, 
+                                         E_DESKTOP_SHELL_CURSOR_BUSY);
      }
    else
      {

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to