1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 14:08:06 +01:00

swpanel: Clean up "case ButtonRelease"

Get rid of 2 tabs indentation by removing a
not-strictly-necessary temporary variable.
This commit is contained in:
Carlos R. Mafra
2009-08-22 02:46:17 +02:00
parent d27e43e6b5
commit 203eba8937

View File

@@ -203,19 +203,13 @@ void StartWindozeCycle(WWindow * wwin, XEvent * event, Bool next)
case LeaveNotify: case LeaveNotify:
case MotionNotify: case MotionNotify:
case ButtonRelease: case ButtonRelease:
{
WWindow *tmp;
if (swpanel) { if (swpanel) {
tmp = wSwitchPanelHandleEvent(swpanel, &ev); newFocused = wSwitchPanelHandleEvent(swpanel, &ev);
if (tmp) {
newFocused = tmp;
oldFocused = change_focus_and_raise(newFocused, oldFocused, swpanel, scr); oldFocused = change_focus_and_raise(newFocused, oldFocused, swpanel, scr);
if (ev.type == ButtonRelease) if (ev.type == ButtonRelease)
done = True; done = True;
} }
}
}
break; break;
default: default: