Use for range based loop in X11Window::restackWindow() when traversing through stack
It's more readable and it also makes code more refactorable. For example, if somebody makes Workspace::stackingOrder() return a normal QList, KWin won't crash at this code.