wmaker: took as much assignation as possible outside 'if' statements
commit1c1909d5fea376ed40d4bbd1cbfd72177212ce1f
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 8 May 2015 11:19:04 +0000 (8 13:19 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 8 May 2015 17:53:29 +0000 (8 18:53 +0100)
treedf646b6c187fc4df8db28475dad48a89328c5036
parente14fad11626e881b104d4cc520abfdecdb82532f
wmaker: took as much assignation as possible outside 'if' statements

It is generally considered bad practice to place an assignation inside the
expression for an "if" statement because it is often a source of bug,
because of possible typos and because it makes reviewing code more
complicated.

This patch fixes as much cases as possible to make the code easier to read.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
12 files changed:
src/appmenu.c
src/dialog.c
src/dock.c
src/event.c
src/monitor.c
src/osdep_bsd.c
src/osdep_linux.c
src/screen.c
src/session.c
src/wdefaults.c
src/winspector.c
src/workspace.c