Tiling2: Moved fullscreen check into 'is_tilable'.
authorTom Hacohen <tom@stosb.com>
Mon, 13 Jan 2014 17:23:33 +0000 (17:23 +0000)
committerTom Hacohen <tom@stosb.com>
Fri, 21 Feb 2014 09:15:05 +0000 (09:15 +0000)
src/modules/tiling/e_mod_tiling.c

index 3f31d74..8f292dc 100644 (file)
@@ -198,6 +198,10 @@ is_tilable(const E_Client *ec)
                 || (ec->netwm.type == E_WINDOW_TYPE_DIALOG)))
         return false;
 
+    if (ec->fullscreen) {
+         return false;
+    }
+
     return true;
 }
 
@@ -481,9 +485,6 @@ _add_client(E_Client *ec)
     if (!is_tilable(ec)) {
         return;
     }
-    if (ec->fullscreen) {
-         return;
-    }
 
     if (!_G.tinfo || !_G.tinfo->conf || !_G.tinfo->conf->nb_stacks) {
         return;
@@ -645,10 +646,6 @@ _pre_client_assign_hook(void *data __UNUSED__,
         return;
     }
 
-    if (ec->fullscreen) {
-         return;
-    }
-
     /* Fill initial values if not already done */
     _get_or_create_client_extra(ec);