fix soem formatting.
authorCarsten Haitzler <raster@rasterman.com>
Thu, 24 May 2012 07:07:04 +0000 (07:07 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Thu, 24 May 2012 07:07:04 +0000 (07:07 +0000)
SVN revision: 71398

src/bin/e_border.c
src/bin/e_hints.c

index d853d04..3fb0b14 100644 (file)
@@ -987,25 +987,25 @@ e_border_hide(E_Border *bd,
                     e_border_focus_set(bd->parent, 1, 1);
                   else if (e_config->focus_revert_on_hide_or_close)
                     {
-     /* When using pointer focus, the border under the
-      * pointer (if any) gets focused, in sloppy/click
-      * focus the last focused window on the current
-      * desk gets focus */
-                         if (e_config->focus_policy == E_FOCUS_MOUSE)
-                           {
-                              pbd = e_border_under_pointer_get(desk, bd);
-                              if (pbd)
-                                e_border_focus_set(pbd, 1, 1);
-                           }
-                         else
-                           e_desk_last_focused_focus(desk);
+                       /* When using pointer focus, the border under the
+                        * pointer (if any) gets focused, in sloppy/click
+                        * focus the last focused window on the current
+                        * desk gets focus */
+                       if (e_config->focus_policy == E_FOCUS_MOUSE)
+                         {
+                            pbd = e_border_under_pointer_get(desk, bd);
+                            if (pbd)
+                              e_border_focus_set(pbd, 1, 1);
+                         }
+                       else
+                         e_desk_last_focused_focus(desk);
                     }
                }
           }
         if (manage == 1)
           {
              /* Make sure that this border isn't deleted */
-              bd->await_hide_event++;
+             bd->await_hide_event++;
           }
         if (manage != 2)
           {
@@ -1013,7 +1013,7 @@ e_border_hide(E_Border *bd,
                ecore_x_window_hide(bd->client.win);
           }
      }
-
+   
    visible = 0;
    ecore_x_window_prop_card32_set(bd->client.win, E_ATOM_MAPPED, &visible, 1);
    if (!manage)
@@ -4785,22 +4785,22 @@ _e_border_cb_window_hide(void *data  __UNUSED__,
 //        printf("  Don't delete hidden or iconified windows\n");
 //        printf("  bd->iconic = %i, bd->visible = %i, bd->new_client = %i, bd->await_hide_event = %i\n",
 //               bd->iconic, bd->visible, bd->new_client, bd->await_hide_event);
-              if (bd->await_hide_event > 0)
-                {
-                   bd->await_hide_event--;
-                }
-              else
-                {
+        if (bd->await_hide_event > 0)
+          {
+             bd->await_hide_event--;
+          }
+        else
+          {
 //             printf("  hide really\n");
-     /* Only hide the border if it is visible */
-                      if (bd->visible) e_border_hide(bd, 1);
-                }
+             /* Only hide the border if it is visible */
+             if (bd->visible) e_border_hide(bd, 1);
+          }
      }
    else
      {
 //             printf("  hide2\n");
-          e_border_hide(bd, 0);
-          e_object_del(E_OBJECT(bd));
+        e_border_hide(bd, 0);
+        e_object_del(E_OBJECT(bd));
      }
    return ECORE_CALLBACK_PASS_ON;
 }
index 8f0baf0..3e68497 100644 (file)
@@ -865,7 +865,7 @@ e_hints_window_state_update(E_Border                   *bd,
         break;
 
       case ECORE_X_WINDOW_STATE_HIDDEN:
-        /* Ignore */
+        /* XXX: fixme */
         break;
 
       case ECORE_X_WINDOW_STATE_FULLSCREEN:
@@ -986,7 +986,7 @@ e_hints_window_state_get(E_Border *bd)
              switch (state[i])
                {
                 case ECORE_X_WINDOW_STATE_ICONIFIED:
-     /* Ignore */
+                  /* Ignore */
                   break;
 
                 case ECORE_X_WINDOW_STATE_MODAL:
@@ -1034,11 +1034,11 @@ e_hints_window_state_get(E_Border *bd)
                   break;
 
                 case ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION:
-     /* FIXME */
+                  /* FIXME */
                   break;
 
                 case ECORE_X_WINDOW_STATE_UNKNOWN:
-     /* Ignore */
+                  /* Ignore */
                   break;
                }
           }