unset x11 focus grabs on clients only if there is an xwindow present
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 2 Jul 2015 18:57:42 +0000 (14:57 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 2 Jul 2015 18:57:42 +0000 (14:57 -0400)
fix T2539

src/bin/e_comp_x.c

index 38dbb83..35f1bd7 100644 (file)
@@ -4246,12 +4246,12 @@ static void
 _e_comp_x_hook_client_focus_set(void *d EINA_UNUSED, E_Client *ec)
 {
    focus_time = ecore_x_current_time_get();
-   _e_comp_x_focus_setdown(ec);
    if (!e_client_has_xwindow(ec))
      {
         e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
         return;
      }
+   _e_comp_x_focus_setdown(ec);
 
    if ((ec->icccm.take_focus) && (ec->icccm.accepts_focus))
      {