Don't focus activated if focus is locked out.
authorChristopher Michael <cpmichael1@comcast.net>
Tue, 15 Dec 2009 00:12:26 +0000 (00:12 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Tue, 15 Dec 2009 00:12:26 +0000 (00:12 +0000)
SVN revision: 44456

src/modules/illume2/e_mod_layout_illume.c

index e3fad6d..9a9ffe6 100644 (file)
@@ -163,8 +163,9 @@ _border_activate(E_Border *bd)
 {
    /* HANDLE A BORDER BEING ACTIVATED */
 
-   /* only set focus if border accepts it */
-   if ((!bd->client.icccm.accepts_focus) && (!bd->client.icccm.take_focus)) 
+   /* only set focus if border accepts it and it's not locked out */
+   if (((!bd->client.icccm.accepts_focus) && (!bd->client.icccm.take_focus)) ||
+       (bd->lock_focus_out))
      return;
 
    /* if the border is not focused, check focus settings */