changeset 3173:fbe5a1f65fae

Slightly refactored code
author unexist
date Sat, 14 Jan 2012 16:43:38 +0100
parents d832734823f1
children 5065458b72ff
files src/subtle/event.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/event.c	Sat Jan 14 16:10:02 2012 +0100
+++ b/src/subtle/event.c	Sat Jan 14 16:43:38 2012 +0100
@@ -610,11 +610,9 @@
                   {
                     subScreenConfigure();
 
-                    if(!VISIBLE(c))
-                      {
-                        c = subClientNext(c->screenid, False);
-                        if(c) subClientFocus(c, True);
-                      }
+                    /* Find next and focus */
+                    if(!VISIBLE(c) && (c = subClientNext(c->screenid, False)))
+                      subClientFocus(c, True);
 
                     subScreenUpdate();
                     subScreenRender();