kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=525e7afc6bc51674e29012e8f0769820ef23cc96

commit 525e7afc6bc51674e29012e8f0769820ef23cc96
Author: Kim Woelders <[email protected]>
Date:   Tue Mar 27 19:22:50 2018 +0200

    focus.c: Cosmetics
---
 src/focus.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/focus.c b/src/focus.c
index d2aa7370..20eaebe9 100644
--- a/src/focus.c
+++ b/src/focus.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various 
contributors
- * Copyright (C) 2004-2017 Kim Woelders
+ * Copyright (C) 2004-2018 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -353,20 +353,19 @@ doFocusToEwin(EWin * ewin, int why)
        break;
 
      case FOCUS_EWIN_NEW:
-       if (Conf.focus.all_new_windows_get_focus)
-          goto check_focus_new;
-
        if (Mode.place.doing_manual)
           goto check_focus_new;
 
        if (ewin->props.focus_when_mapped)
           goto check_focus_new;
 
-       if (Conf.focus.new_windows_get_focus_if_group_focused && Mode.focuswin)
-         {
-            if (EwinGetWindowGroup(ewin) == EwinGetWindowGroup(Mode.focuswin))
-               goto check_focus_new;
-         }
+       if (Conf.focus.all_new_windows_get_focus)
+          goto check_focus_new;
+
+       if (Conf.focus.new_windows_get_focus_if_group_focused &&
+           Mode.focuswin &&
+           EwinGetWindowGroup(ewin) == EwinGetWindowGroup(Mode.focuswin))
+          goto check_focus_new;
 
        if (EwinIsTransient(ewin))
          {

-- 


Reply via email to