fix soem formatting.

SVN revision: 71398
This commit is contained in:
Carsten Haitzler 2012-05-24 07:07:04 +00:00
parent b9bd60aad8
commit ef227bba1d
2 changed files with 29 additions and 29 deletions

View File

@ -987,25 +987,25 @@ e_border_hide(E_Border *bd,
e_border_focus_set(bd->parent, 1, 1); e_border_focus_set(bd->parent, 1, 1);
else if (e_config->focus_revert_on_hide_or_close) else if (e_config->focus_revert_on_hide_or_close)
{ {
/* When using pointer focus, the border under the /* When using pointer focus, the border under the
* pointer (if any) gets focused, in sloppy/click * pointer (if any) gets focused, in sloppy/click
* focus the last focused window on the current * focus the last focused window on the current
* desk gets focus */ * desk gets focus */
if (e_config->focus_policy == E_FOCUS_MOUSE) if (e_config->focus_policy == E_FOCUS_MOUSE)
{ {
pbd = e_border_under_pointer_get(desk, bd); pbd = e_border_under_pointer_get(desk, bd);
if (pbd) if (pbd)
e_border_focus_set(pbd, 1, 1); e_border_focus_set(pbd, 1, 1);
} }
else else
e_desk_last_focused_focus(desk); e_desk_last_focused_focus(desk);
} }
} }
} }
if (manage == 1) if (manage == 1)
{ {
/* Make sure that this border isn't deleted */ /* Make sure that this border isn't deleted */
bd->await_hide_event++; bd->await_hide_event++;
} }
if (manage != 2) if (manage != 2)
{ {
@ -1013,7 +1013,7 @@ e_border_hide(E_Border *bd,
ecore_x_window_hide(bd->client.win); ecore_x_window_hide(bd->client.win);
} }
} }
visible = 0; visible = 0;
ecore_x_window_prop_card32_set(bd->client.win, E_ATOM_MAPPED, &visible, 1); ecore_x_window_prop_card32_set(bd->client.win, E_ATOM_MAPPED, &visible, 1);
if (!manage) if (!manage)
@ -4785,22 +4785,22 @@ _e_border_cb_window_hide(void *data __UNUSED__,
// printf(" Don't delete hidden or iconified windows\n"); // 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", // 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); // bd->iconic, bd->visible, bd->new_client, bd->await_hide_event);
if (bd->await_hide_event > 0) if (bd->await_hide_event > 0)
{ {
bd->await_hide_event--; bd->await_hide_event--;
} }
else else
{ {
// printf(" hide really\n"); // printf(" hide really\n");
/* Only hide the border if it is visible */ /* Only hide the border if it is visible */
if (bd->visible) e_border_hide(bd, 1); if (bd->visible) e_border_hide(bd, 1);
} }
} }
else else
{ {
// printf(" hide2\n"); // printf(" hide2\n");
e_border_hide(bd, 0); e_border_hide(bd, 0);
e_object_del(E_OBJECT(bd)); e_object_del(E_OBJECT(bd));
} }
return ECORE_CALLBACK_PASS_ON; return ECORE_CALLBACK_PASS_ON;
} }

View File

@ -865,7 +865,7 @@ e_hints_window_state_update(E_Border *bd,
break; break;
case ECORE_X_WINDOW_STATE_HIDDEN: case ECORE_X_WINDOW_STATE_HIDDEN:
/* Ignore */ /* XXX: fixme */
break; break;
case ECORE_X_WINDOW_STATE_FULLSCREEN: case ECORE_X_WINDOW_STATE_FULLSCREEN:
@ -986,7 +986,7 @@ e_hints_window_state_get(E_Border *bd)
switch (state[i]) switch (state[i])
{ {
case ECORE_X_WINDOW_STATE_ICONIFIED: case ECORE_X_WINDOW_STATE_ICONIFIED:
/* Ignore */ /* Ignore */
break; break;
case ECORE_X_WINDOW_STATE_MODAL: case ECORE_X_WINDOW_STATE_MODAL:
@ -1034,11 +1034,11 @@ e_hints_window_state_get(E_Border *bd)
break; break;
case ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION: case ECORE_X_WINDOW_STATE_DEMANDS_ATTENTION:
/* FIXME */ /* FIXME */
break; break;
case ECORE_X_WINDOW_STATE_UNKNOWN: case ECORE_X_WINDOW_STATE_UNKNOWN:
/* Ignore */ /* Ignore */
break; break;
} }
} }