e: whitespaces-- and use x = !x instead of if else

SVN revision: 56992
This commit is contained in:
Boris Faure 2011-02-13 19:37:50 +00:00
parent 5b5a0ee3a9
commit fbe9738e6f
1 changed files with 167 additions and 170 deletions

View File

@ -760,10 +760,7 @@ ACT_FN_GO(window_borderless_toggle, __UNUSED__)
E_Border *bd;
bd = (E_Border *)obj;
if (bd->borderless)
bd->borderless = 0;
else
bd->borderless = 1;
bd->borderless = !bd->borderless;
bd->client.border.changed = 1;
bd->changed = 1;
@ -778,7 +775,7 @@ ACT_FN_GO(window_pinned_toggle, __UNUSED__)
if (!obj) return;
if (!((E_Border *)obj)->lock_border)
{
E_Border *bd;
E_Border *bd;
bd = (E_Border *)obj;
if ((bd->client.netwm.state.stacking == E_STACKING_BELOW) &&