From a9238c99b98eb44e03e8eadc509c4cc9c3918640 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Thu, 20 Aug 2009 05:30:39 +0200 Subject: [PATCH] Clean up coding style in StartWindozeCycle() No functional changes were made apart from setting the various KeyCode variables at the same time as defining them. --- src/cycling.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/cycling.c b/src/cycling.c index 3316aab2..f7ddacff 100644 --- a/src/cycling.c +++ b/src/cycling.c @@ -63,28 +63,28 @@ static void raiseWindow(WSwitchPanel * swpanel, WWindow * wwin) void StartWindozeCycle(WWindow * wwin, XEvent * event, Bool next) { - WScreen *scr = wScreenForRootWindow(event->xkey.root); - Bool done = False; - WWindow *newFocused; - WWindow *oldFocused; - int modifiers; - XModifierKeymap *keymap = NULL; - Bool hasModifier; - Bool somethingElse = False; - XEvent ev; - WSwitchPanel *swpanel = NULL; - KeyCode leftKey, rightKey, homeKey, endKey, shiftLKey, shiftRKey; + + XModifierKeymap *keymap = NULL; + WSwitchPanel *swpanel = NULL; + WScreen *scr = wScreenForRootWindow(event->xkey.root); + KeyCode leftKey = XKeysymToKeycode(dpy, XK_Left); + KeyCode rightKey = XKeysymToKeycode(dpy, XK_Right); + KeyCode homeKey = XKeysymToKeycode(dpy, XK_Home); + KeyCode endKey = XKeysymToKeycode(dpy, XK_End); + KeyCode shiftLKey = XKeysymToKeycode(dpy, XK_Shift_L); + KeyCode shiftRKey = XKeysymToKeycode(dpy, XK_Shift_R); + Bool somethingElse = False; + Bool done = False; + Bool hasModifier; + int modifiers; + WWindow *newFocused; + WWindow *oldFocused; + XEvent ev; + if (!wwin) return; - leftKey = XKeysymToKeycode(dpy, XK_Left); - rightKey = XKeysymToKeycode(dpy, XK_Right); - homeKey = XKeysymToKeycode(dpy, XK_Home); - endKey = XKeysymToKeycode(dpy, XK_End); - shiftLKey = XKeysymToKeycode(dpy, XK_Shift_L); - shiftRKey = XKeysymToKeycode(dpy, XK_Shift_R); - if (next) hasModifier = (wKeyBindings[WKBD_FOCUSNEXT].modifier != 0); else -- 2.11.4.GIT