devilhorns pushed a commit to branch master.

commit f37f806eff928507b1212db92e0c7577cb3d9c99
Author: Chris Michael <[email protected]>
Date:   Wed Aug 28 09:43:25 2013 +0100

    Reduce extra function call to client_get_display
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 6de200a..ad6e8c6 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1186,15 +1186,13 @@ _default_grab_key(struct wl_keyboard_grab *grab, 
uint32_t timestamp, uint32_t ke
 {
    struct wl_keyboard *keyboard = grab->keyboard;
    struct wl_resource *resource;
-   uint32_t serial;
 
    resource = keyboard->focus_resource;
    if (resource) 
      {
-        struct wl_display *disp;
+        uint32_t serial;
 
-        disp = wl_client_get_display(wl_resource_get_client(resource));
-        serial = wl_display_next_serial(disp);
+        serial = wl_display_next_serial(_e_wl_comp->wl.display);
         wl_keyboard_send_key(resource, serial, timestamp, key, state);
      }
 }

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

Reply via email to