unfocus focused+disabled widget always, not just when focus jump fails
authordiscomfitor <michael.blumenkrantz@gmail.com>
Sat, 26 Oct 2013 08:53:15 +0000 (09:53 +0100)
committerdiscomfitor <michael.blumenkrantz@gmail.com>
Sat, 26 Oct 2013 08:53:15 +0000 (09:53 +0100)
pretty sure this doesn't affect anything in e18, but it does break things in a really hard to reproduce setting involving clicking/disabling/focusing widgets simultaneously

src/bin/e_widget.c

index eab7e69a88be54361167c80b53bb26f79383c470..ee8cc68c689d9fa770b07a4f1d4216c9de412a9a 100644 (file)
@@ -460,7 +460,8 @@ e_widget_disabled_set(Evas_Object *obj, int disabled)
              if (!o) break;
              parent = o;
           }
-        if (!e_widget_focus_jump(parent, 1))
+        e_widget_focus_jump(parent, 1);
+        if (sd->focused)
           {
              sd->focused = 0;
              if (sd->focus_func) sd->focus_func(obj);