Don't need to trigger layout update twice.
authorChristopher Michael <cpmichael1@comcast.net>
Fri, 19 Feb 2010 14:45:10 +0000 (14:45 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Fri, 19 Feb 2010 14:45:10 +0000 (14:45 +0000)
Set focus to the newly shown border.

SVN revision: 46311

src/modules/illume2/policies/illume/policy.c

index a00f49a..36eae10 100644 (file)
@@ -202,20 +202,16 @@ _policy_border_show_below(E_Border *bd)
 
              if ((bd->fullscreen) || (bd->need_fullscreen)) 
                {
-                  if (!b->visible) 
-                    e_border_show(b);
-                  b->changes.visible = 1;
-                  b->changed = 1;
+                  if (!b->visible) e_border_show(b);
+                  _policy_border_set_focus(b);
                }
              else 
                {
                   /* need to check x/y position */
                   if ((b->x == bd->x) && (b->y == bd->y)) 
                     {
-                       if (!b->visible) 
-                         e_border_show(b);
-                       b->changes.visible = 1;
-                       b->changed = 1;
+                       if (!b->visible) e_border_show(b);
+                       _policy_border_set_focus(b);
                     }
                }
           }