Change the order of engine method calls for consistency.
authorYusuke Sato <yusukes@chromium.org>
Thu, 25 Nov 2010 08:40:43 +0000 (17:40 +0900)
committerYusuke Sato <yusukes@chromium.org>
Thu, 25 Nov 2010 08:40:43 +0000 (17:40 +0900)
BUG=none
TEST=manually

Review URL: http://codereview.appspot.com/3304042

bus/inputcontext.c

index 4a522b1..8f36b4c 100644 (file)
@@ -1928,9 +1928,8 @@ bus_input_context_enable (BusInputContext *context)
 
     context->enabled = TRUE;
 
-    /* FIXME would be better to call proxy_focus_in first to be consistent with bus_input_context_focus_in and bus_input_context_set_engine? */
-    bus_engine_proxy_enable (context->engine);
     bus_engine_proxy_focus_in (context->engine);
+    bus_engine_proxy_enable (context->engine);
     bus_engine_proxy_set_capabilities (context->engine, context->capabilities);
     bus_engine_proxy_set_cursor_location (context->engine, context->x, context->y, context->w, context->h);