From 203eba89370061e6272da73e8c5050d48e90459e Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sat, 22 Aug 2009 02:46:17 +0200 Subject: [PATCH] swpanel: Clean up "case ButtonRelease" Get rid of 2 tabs indentation by removing a not-strictly-necessary temporary variable. --- src/cycling.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/cycling.c b/src/cycling.c index 094fcc57..9108fa68 100644 --- a/src/cycling.c +++ b/src/cycling.c @@ -203,18 +203,12 @@ void StartWindozeCycle(WWindow * wwin, XEvent * event, Bool next) case LeaveNotify: case MotionNotify: case ButtonRelease: - { - WWindow *tmp; - if (swpanel) { - tmp = wSwitchPanelHandleEvent(swpanel, &ev); - if (tmp) { - newFocused = tmp; - oldFocused = change_focus_and_raise(newFocused, oldFocused, swpanel, scr); - - if (ev.type == ButtonRelease) - done = True; - } - } + if (swpanel) { + newFocused = wSwitchPanelHandleEvent(swpanel, &ev); + oldFocused = change_focus_and_raise(newFocused, oldFocused, swpanel, scr); + + if (ev.type == ButtonRelease) + done = True; } break; -- 2.11.4.GIT